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 %>

image

search_controller.rb


  def dotags

       #get our params

      @mytest = (params[:search][:sname])
       print("sname"+@mytest.to_s)
  
  end

0

Add a comment

I am
I am
Archives
Total Pageviews
Total Pageviews
2 0 5 7 7 0 6
Categories
Categories
Loading