Displaying 3 results from an estimated 3 matches for "search_for".
Did you mean:
search_form
2010 Oct 20
2
form_tag not working correctly?
So I''m trying to make
<form action=''/path'' method=''get'' class=''ajax_box''>
using:
<% form_tag :action => "search_for", {:method => :get, :class =>
''ajax_box''} do %>
but I get:
<form action=''/path?method=get&class=''ajax_box'' method=''post''>
Has form_tag changed with rails v3?
--
Posted via http://www.ruby-forum.com/.
--
Yo...
2005 Nov 09
3
AJAX form Parameters jumbled.
...;=>"jim"}.
-----------------------------------
TypeError in Admin#search
cannot convert nil into String
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/models/member.rb:54:in `+''
#{RAILS_ROOT}/app/models/member.rb:54:in `search_for''
#{RAILS_ROOT}/app/controllers/admin_controller.rb:16:in `search''
Request
Parameters: {"jim"=>"", "_"=>""}
-----------------------------------
Any advice?
- Jim
2011 Oct 07
0
will_paginate + RJS error
...\n
\n \n \n \n \n \n \n \n Carl \n \n \n \n \n
\n \n\n \n\n\n \n \n
\n
\n \n
\n\n
\n
\n
<< prev 1 2 next >>
\\n
\\n \\n
\\n\\n
\\n
\\n
<< prev 1 2 next >>
\\n
\\n\\n\");''); throw e }
My Controller:
def search_professors
begin
@professors =
User.search_for(params[:search]).paginate(:all,:conditions =>
{:professor => true},:page => params[:page], :per_page => 8)
rescue => e
flash[:error] = e.to_s
@professors= User.search_for ''*''
end
respond_to do |format|
format.html
format.js
end
end
The v...