How to ‘allow’ the controllers to ‘get’ the currently logged in person:

in application.rb add
  def getCurrentUser
    return User.find(1)# TODO search for it much better, login...

now you can use it thus:

@user_blended_cast.user_id = getCurrentUser().id

and voila it works!

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.