search for: user_photo

Displaying 4 results from an estimated 4 matches for "user_photo".

2008 Feb 29
4
App design question: user_photo helper
I''m having trouble using an application helper and understanding how I should make it work throughout my application - so if you can help me with this I''ll be overcoming a big hurdle in my learning. Here''s the helper method; [code=]# application_helper.rb def user_photo if @user.photo? return @user.photo.public_filename(:thumb) else return ''rails.png'' end end[/code] Pretty simple. I understand what it does, and it works just fine in my show action in the user controller; [code=]# user_controller.rb def show @user = User.find(pa...
2008 Jan 21
7
undefined method error
Hello everyone, I am following the Practical Rails: Social Networking sites book. In chapter 7 photo gallery I am getting a NoMethodError in Pages#show Showing layouts/_menu.rhtml where line #12 raised: undefined method `new_entry_path'' for #<ActionView::Base:0x52fa56c> Extracted source (around line #12): 9: <% if is_logged_in? %> 10:
2009 Apr 28
0
strange path errors
Hi all, I am suddenly getting path errors in my application where there were none before. I have a user login that directs the user to their profile page. I can login ok for some users, but others I am getting path errors such that I cant log in e.g. user_photo_url failed to generate from :controller=>"user_photos", :user_id=>#<User id: 2, user_name:...... This path is in my user profile view: 1: <li> 2: <%= link_to image_tag(photo.public_filename(''thumb'')), 3: user_photo_path(:user_id =>...
2011 May 01
0
Fbgraph
..."message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration." } } In my controller, def start redirect_to client.authorization.authorize_url(:redirect_uri => " http://localhost:3000/" , :scope => ''email,user_photos,friends_photos,publish_stream'') end i want to post,poke to friends via my app ,is any other plugin available for this . Thanks in advance -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send...