-
Notifications
You must be signed in to change notification settings - Fork 50
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
wrong number of arguments (4 for 0) #26
Comments
I get same error when using f.sir_trevor_text_area in Active Admin |
wrong number of arguments (4 for 0) |
Hi guys. Try this branch of the gem: https://github.com/madebymany/sir-trevor-rails/tree/redesign-gem There are some changes that you will need to make but in the long run it should make ST integration easier as it removes the need for I'm just trying to find the time to write some test before I PR it to master. Let me know if you have any problems |
gem 'sir_trevor_rails' gem 'sir_trevor_rails', github: 'madebymany/sir-trevor-rails', branch: 'redesign-gem' rails s |
can you upload working example with sir trevor on rails? |
+1 Rails: 4.0.4 Can't even try @ninjabiscuit s branch as I get this error:
|
@tomgrim for some (stupid) reason, I renamed the gem to be sir_trevor_rails (note the underscores) for consistency. try it again by referencing the the correct name in the gemfile |
Ah good catch! Unfortunately I'm now getting:
I see someone else fixed this by restarting their server but I haven't had the same luck. |
Yeah, I need to write an upgrade guide for this gem I guess. I've removed the Most of the breaking changes are mentioned here: https://github.com/madebymany/sir-trevor-rails/blob/redesign-gem/README.md to fix that error, you'll need to manually set up a textarea for use with sir trevor. IE use a normal I'll try and put together a guide at some point. |
Should really have read the commits before posting but at least it's working now! Thanks a lot for your help 👍 |
No problem, glad you got it working. You've spurred me on to finish the documentation |
I use manual: https://github.com/madebymany/sir-trevor-rails
My gemfile i add:
gem 'sir-trevor-rails', github: 'madebymany/sir-trevor-rails', branch: 'v4'
But i have error:
In _form.html.haml i write:
Model have attribute :body
When has be error ???
P.S.
$ rails -v
The text was updated successfully, but these errors were encountered: