[Rails] Re: a hands-on tutoring needed
happy moments are too short...
the search form worked and still works but it has a major flaw - when
the text_field_tag is left blank then all the db raws pop up on hitting
submit button.
How to prevent it?
I tried to substitute 'if (search.present?)' for just 'if search' in
disk.rb (the googled out trick seemed so logical) yet it availed of
nothing and all the records were displayed again.
Now what?
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home