Re: [Rails] undefined method `paginate' for #Class:0x567eb98 in Rails Tutorial

2013-10-25 Thread desbest
a line number in the file so we can cross reference to the error. Colin On 24 October 2013 22:17, Colin Law cla...@googlemail.com javascript: wrote: On 24 October 2013 21:47, desbest afanint...@gmail.com javascript: wrote: Hi, I'm getting a undefined method `paginate

[Rails] undefined method `paginate' for #Class:0x567eb98 in Rails Tutorial

2013-10-24 Thread desbest
Hi, I'm getting a undefined method `paginate' for #Class:0x567eb98 even though I have gem 'will_paginate' installed. Inside the users_controller I have @users = User.paginate(page: params[:page ]) so I believe I set everything up to be correct. Can you figure out why the method's undefined,

[Rails] What is your favourite authentication gem and why?

2013-10-21 Thread desbest
What is your favourite authentication gem and why? Right now I have 4 to choose from (Cancan, Clearance, Rails Casthttp://railscasts.com/episodes/250-authentication-from-scratch) and I don't know which one to pick. I cannot use Device because I'm a beginner at Rails. -- You received this

[Rails] Is it a good idea to use timestamps

2013-10-21 Thread desbest
Timestamps are a number that counts the number of seconds from the epoch date 1/1/1970. I read somewhere on the internethttp://en.wikipedia.org/wiki/Year_2038_problem, that timestamps will expire in the year 2038. This is why I always use *-mm-dd* and *-mm-dd HH:ss* to show the date

[Rails] I think I've found a mistake in Rails tutorial

2013-10-21 Thread desbest
At the point of this section *http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure*http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure clicking the Create my account button on the signup form shows the following image at

[Rails] Re: I think I've found a mistake in Rails tutorial

2013-10-21 Thread desbest
There is no params as I am just clicking a Signup button that's on a page, then the error shows up. I'm using Ruby 1.9.3 and the latest versions of sass-rails and coffee-rails. On Monday, October 21, 2013 6:35:15 PM UTC+1, desbest wrote: At the point of this section *http

[Rails] Re: I think I've found a mistake in Rails tutorial

2013-10-21 Thread desbest
(ActiveModel::ForbiddenAttributesError): app/controllers/users_controller.rb:12:in `create' On Monday, October 21, 2013 6:35:15 PM UTC+1, desbest wrote: At the point of this section *http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure*http://ruby.railstutorial.org/chapters