Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## profile_controller.rb
- before_filter :get_user
- protected
- def get_user
- @user = User.find(params[:user])
- end
- ##view
- <% if @user = current_user %>
- show the user some shit
- <% else %>
- don't show the user any shit
- <% end %>
- #using restful_authentication and this doesn't work, what am I doing incorrectly?
Add Comment
Please, Sign In to add comment