search for: user_pic

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

Did you mean: user_pic1
2007 Oct 03
3
Pagination problem with acts_as_ferret
...gt; </td> </tr> </table> <% @results.each { |result| -%> <li><%= link_to result.user.name, :controller => ''user_profiles'', :action => ''list_user'', :id=> result.user %></li><br /> <% if result.user.user_pic %> <img src="<%=image_path url_for( :controller => "user_pics", :action => "show_thumb", :id => result.user.user_pic ) %>" /> <% end %> <% } -%> </ul> <br /> <% end -%> </div> </div> <%= link...
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[:pi...