RailsCasts Pro episodes are now free!

Learn more or hide this

Richard's Profile

GitHub User: RichardBansal

Comments by Richard

Avatar

Actually - I am not sure, my 'current_user' is broken right now, the status is not stored, so I never see the "Log out" button, any ideas anyone? I can log-in and sign-up, just can't 'log-out' or get the current_user to work...

Avatar

Also noticed (for Rails4):

layouts/application.html.erb, we should be using the instance variable instead for current_user, so it should be "<% if @current_user %>"

Avatar

I was having this issue, and it could be due to the version of Rails I am using.

I get 'create new user' error: "ActiveModel::ForbiddenAttributesError when creating new user" and I looked it up on StackOverflow: http://stackoverflow.com/questions/17335329/activemodelforbiddenattributeserror-when-creating-new-user

That link solved my problem.

Avatar

I second that - this worked for me as well, just adding the below gems

bootstrap gem

gem 'therubyracer'
gem 'less-rails'
gem 'twitter-bootstrap-rails'