Displaying 3 results from an estimated 3 matches for "params_hash".
2007 Dec 28
11
LIKE clause in rails
Hello,
I am trying to achieve a search functionality in the following manner
i have an table called people
which has
first_name,last_name,etc...
After the user form to search people is submitted i get the params hash
as params[:persons]={"first_name"=> "%John%","last_name"=>"%Stevens%"}
NOTE : I have changed the params hash to include the %.
Now
2012 Jan 19
4
redirect_to with a hash instead of parameters
...racter. I''d like
it to be null-padded, but it seems messy to put .rjust(2, ''0'') against
all three parameters everywhere in the code.
Is it possible to do something like this?
redirect_to :action => ''foo'', :uid => @schedule.first.train_uid,
params_hash
...where params_hash contains { :year => ''2011'', :month => ''01'', :day =>
''19'' }
Cheers,
Peter
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this gr...
2006 Mar 31
4
Question about pagination
Hi!
I''ve got a list of project on the main page and if one of them is
selected i render a partial using ajax with data of selected project.
How to create links to next/previous project using pagination?
--
Posted via http://www.ruby-forum.com/.