search for: user_p

Displaying 2 results from an estimated 2 matches for "user_p".

Did you mean: user_u
2007 Oct 03
3
Pagination problem with acts_as_ferret
...instead of the next 2 records. Also the result count is showing only 10 instead of 12 thats the right count. Here''s my code: Controller: def search @users = User.available_users @user = User.find(session[:user_id]) @query = params[:query] || '''' @total, @user_profiles = UserProfile.multi_search(@query, [ WorkProfile, SchoolProfile ], :page => (params[:page]||1)) @pages = pages_for(@total) unless @query.blank? @results = UserProfile.find_by_contents @query end end model: def self.multi_search(q, additional_models = [], options = {}) retur...
2006 Jun 27
4
File Column has me stumped
...no matter what I do the entry comes up blank. Here''s what I have so far: View: <%= start_form_tag ({:action => ''settings_save'', :id => @user.id}, :multipart => true) %> <%= error_messages_for ''user'' %> <p><label for="user_pic"></label><br/> <%= file_column_field "user", "pic" %></p> <%= submit_tag "Change" %> <%= end_form_tag %> controller: def settings_save @user = User.find(params[:id]) @user.update_attribute("pic", params[:...