Redirection in Rails -
I have a small question about railways. I have a search controller who searches for a name in the database If found, details are shown about it or I am redirecting to the new name page.
Itemprop = "text">
You can use to pass data between tasks.
Diff Search (SearchName) #Db Search on Flash: [searchname] = searchName redirect_to new_name end def New_name end
new_name.html. ARB:
& lt;% if Flash [: search name]% & gt; & Lt;% = text_field_tag Flash [: search name]%> & Lt;% end% & gt;
Comments
Post a Comment