Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Sir Trevor in Rails 4 #25

Open
mdunbavan opened this issue Feb 11, 2014 · 8 comments
Open

Issue with Sir Trevor in Rails 4 #25

mdunbavan opened this issue Feb 11, 2014 · 8 comments

Comments

@mdunbavan
Copy link

Hi,

I am building a site using active admin gem and some other things.

I have added the sir trevor gem into my site, unfortunately I have hit a hurdle at the start. In my app/controllers/application_controller.rb I added this:

require 'sir-trevor-rails'

I get this error when I go to my site:

cannot load such file -- sir-trevor-rails

Has anyone ever come across this before?

@cjbell
Copy link
Contributor

cjbell commented Feb 12, 2014

Mark – try using the V4 branch (https://github.com/madebymany/sir-trevor-rails/tree/v4) – master is horribly out of date (and desperately needs updating).

Use it in your Gemfile like this:
gem 'sir-trevor-rails', github: 'madebymany/sir-trevor-rails', branch: 'v4'

Let us know if that helps.

@mdunbavan
Copy link
Author

Hey Chris,

That still gives the same error. Also I am running my app on rails v4.

Got to be a simple fix

@cjbell
Copy link
Contributor

cjbell commented Feb 12, 2014

Have you run a bundle install once you added the gem?

@mdunbavan
Copy link
Author

yeah getting output Using sir-trevor-rails (0.4.0) from git://github.com/madebymany/sir-trevor-rails.git (at v4) on bundle install

Sometimes rails can be a mysterious lady

@cjbell
Copy link
Contributor

cjbell commented Feb 12, 2014

Did you restart your Rails server after running a bundle?

@mdunbavan
Copy link
Author

Think I need to get my head looked at, okay I don't get the file not found error now, I am going to revert back to the other version and try that again and restart server and put all assets back in the application.js and application.css files to see what I get.

@mdunbavan
Copy link
Author

Hey Chris, thanks for that having a head block. One other thing when I upload an image it keeps the spinner going and the submit button has 'please wait...'. When I check in console it says 'Sorry there has been a problem with parsing the JSON', this I guess means the content has not been found in the json that would go into the textarea. Also it says that http://myurl/attachments was not found. Does this mean I need to create a page called attachments?

@etiennemustow
Copy link

@cjbell has the v4 branch been deleted? I'm having the same issue on my project and trying to resolve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants