Closed keenanpayne closed 10 years ago
Rails 3.2 or Rails 4?
Ruby 1.9.3, Rails 3.2.1, and Rolify 3.2
What happens if you build the example application by running the command:
$ rails new rails3-bootstrap-devise-cancan -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb -T
I've tested the app with Ruby 1.9.3, Rails 3.2.1, and Rolify 3.2 and it runs.
If it runs on your local machine, you can compare the code to see where yours differs. Or maybe it would be easier to just use the starter app.
@keenanpayne You've closed the issue. What was the problem? May help others if you can report it.
Oh of course, it was actually a simple solution!
See, I was trying to integrate Rolify and CanCan into my existing project that was using Devise. However (since I'm a beginner/intermediate using Ruby on Rails), I didn't know that when you change configuration files, you had to reset the server.
I closed the terminal that was running my server and then a few hours later when I wanted to start working on it again, everything was fine! I'm assuming that it was just my server that needed to be restarted.
I had Devise up and working perfectly, but then when I went to set up CanCan and Rolify, I get this error in the browser:
user.rb
role.rb
rolify.rb
Let me know if you need me to post any contents from other files in my project, or anything of that nature.