Javier Quarite wrote in post #1067748:
> You can send an empty array or whatever you want, or maybe you can
> handle
> that in the controller
Walter Davis wrote:
>You could kink the form to only submit if there is a value in the search
>field, you would do that with JavaScript. Something like this (inline)
>or better you would use Prototype or jQuery to write an unobtrusive
>handler.
O weh, dear sirs,
If I could I would but before I should know the way to. Presently I
consider your enlightened talk with awe like some heaven dwellers'
parlance incomprehensible for mere mortals.
OK. I asked Google about sending arrays in rails and got another bowl of
geek-talk and changed 'else find(:all)' to whatever I wanted just to be
punished for transgressions of convention over configuration.
Then I added unobtrusive addition to form_tag which seasoning brought no
changes to conventional displaying of everything not searched for.
Of course, RoR has means and ways to solve a petty problem like this
one. The only queston is` 'where to discover?'
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