Ruby on Rails Wednesday, July 4, 2012

Hi Walter,

there is form_tag in the index view`
-------------
<br />
<div>
<%= form_tag disks_path, :method => 'get' do %>
<p>
<%= text_field_tag :search, params[:search] %>
<%= submit_tag "Search", :name => nil %>
</p>
<% end %>

</div>

<%= link_to 'New Disk', new_disk_path %>
--------------

but when I try to put it to use it raises
"ArgumentError in DisksController#index
Unknown key: condition".
I can read the message yet I don't know what to do.

yours`
sehrguey

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

No comments:

Post a Comment