hi, I was try some ROR simple way to me and I found another simple way for forms, But there can be more simple ways for this,
Here is my practice at this time
find.html.erb
<% form_for :search, :url => { :action => "dotags" } do |f| %>
<%= f.error_messages %>
First name: <%= f.text_field :sname %><br />
<%= f.submit 'Search' %>
<% end %>
search_controller.rb
def dotags
#get our params
@mytest = (params[:search][:sname])
print("sname"+@mytest.to_s)
end
Add a comment