Fixed it! 

Since this was an app upgraded from Rails 3.x.x to Rails 4.xxx, a folder 
within my app
was still called script and not bin (as this is a common rails 4 thing?) 

Renamed the folder and the command with sorcery runs fine.


On Saturday, May 3, 2014 10:55:04 AM UTC+2, Ole Ingemann Kjørmo wrote:
>
> Thanks for having a look tamouse. 
> Sorcery is a light weight authentication gem, that is a bit easier than 
> e.g. Devise. 
> We use it for another app we are running in production and it works great! 
> Check it out:) 
>
> On my problem:
> I have a file (or folder) at 
> /Users/oleingemann/.rvm/rubies/ruby-2.0.0-p353/bin/ruby   , but not a 
> bin/rails in my app. 
>
> This might be a problem that sorcery is not supported by Rails 4.1 ? 
> It's a bit funny that it's failing because all my other gems, rails, 
> rubies are working fine.
> Maybe a Sorcery expert could tell us what's going on.
> Have a nice weekend :)
>
> On Saturday, May 3, 2014 4:24:16 AM UTC+2, tamouse wrote:
>>
>> On Fri, May 2, 2014 at 2:36 PM, Ole Ingemann Kjørmo 
>> <[email protected]> wrote: 
>> > without the formatting: 
>> > 
>> > OlimobileRetina:responsive_fw oleingemann$ rails generate 
>> sorcery:install 
>> >       create  config/initializers/sorcery.rb 
>> >     generate  model User --skip-migration 
>> > /Users/oleingemann/.rvm/rubies/ruby-2.0.0-p353/bin/ruby: No such file 
>> or 
>> > directory -- bin/rails (LoadError) 
>> >       insert  app/models/user.rb 
>> > 
>> /Users/oleingemann/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:98:in
>>  
>>
>> > `binread': No such file or directory - 
>> > /Users/oleingemann/rails_projects/responsive_fw/app/models/user.rb 
>> > (Errno::ENOENT) 
>>
>> Can you see if there is, in fact, a bin/rails script in your app 
>> directory? Something seems quite off there. I have no idea what 
>> sorcery is or does, but not finding bin/rails seems like a huge 
>> problem regardless. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/a784a9d0-e390-4833-af1a-c1c57c726b5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to