Devise Raises Error with Rails 4.2 Upgrade

Devise raises error with Rails 4.2 upgrade

It seems like the issue was fixed with this PR https://github.com/plataformatec/devise/pull/3153 a while ago. Update the devise gem in your application (if possible).

Change the version of devise in your Gemfile to at least 3.4.0:

gem 'devise', '~> 3.4.0'   # or later

Then run:

bundle update devise

Update: Devise was updated to version 3.5.x a while ago and 4.0 will be released soon (see all version on RubyGems.org). That said you may want to define at least a version 3.5.x in your Gemfile:

gem 'devise', '~> 3.5.0'

Or just load the newest version that is possible:

gem 'devise', '> 3.4'

follow by a bundle update devise

Devise raises error with Rails 4.2 upgrade

It seems like the issue was fixed with this PR https://github.com/plataformatec/devise/pull/3153 a while ago. Update the devise gem in your application (if possible).

Change the version of devise in your Gemfile to at least 3.4.0:

gem 'devise', '~> 3.4.0'   # or later

Then run:

bundle update devise

Update: Devise was updated to version 3.5.x a while ago and 4.0 will be released soon (see all version on RubyGems.org). That said you may want to define at least a version 3.5.x in your Gemfile:

gem 'devise', '~> 3.5.0'

Or just load the newest version that is possible:

gem 'devise', '> 3.4'

follow by a bundle update devise

Rails upgrade to 4.2 Stack too deep error from arel

I found it...

So, because I was trying to avoid this issue which also has a stackoverflow post here, it looks like I went too high with my devise version.

I was previously running devise 3.2.1, and I took it up to 3.5.1. I would have noticed this if I had only updated a single gem at a time...

However, version 3.4.1 works very well for me here now.

I should probably also mention that my pg gem version is 0.17.0.

Devise 3.5.x on Rails 4.2.x timeout prints true underneath timeout flash message

I know this is a late reply, but this is what I did.

flash.each do |msg_type, message|
unless msg_type.to_s == 'timedout'
<!-- Carry on printing messages -->

Rails 4.1, Ruby 2.1, Devise, Why 'syntax error, unexpected tConstant' in my .where() with multiple conditions?

The operator is && or and, not AND.

However, that's not the root cause of the problem: it appears you are confused about the general syntax of Hash literals. The entries in Hash literals are separated by comma, not by an operator:

@courses = Course.where(user_id: current_user.id, school_id: @school.id)

Note also that if is an expression and thus returns a value, so you can easily refactor that method to

def index
@courses = if @school.nil?
Course.where(user_id: current_user.id)
else
Course.where(user_id: current_user.id, school_id: @school.id)
end
end

NameError: wrong constant name after upgrading Rails 3.2 to 4.2

This ended up being an issue with our application code. We had a Category model that had a #parent_name field, as well as a Category.parent_name(child = nil) class method that was conflicting with Rails core ext. Module#parent_name method.



Related Topics



Leave a reply



Submit