0

When I add this to my gem file ( rails 4.0.1 )

gem 'rails-api', git: 'https://github.com/rails-api/rails-api.git', branch: 'master'    

My routes seem to break (although rake routes is the same before/after)

I get this after I attempt to update a simple scaffold model

No route matches [POST] "/surveys/1" when I update a record

by commenting out this gem it works again - any ideas what I did wrong?

thanks!

PS: Adding this to gem file so I can use strong parameters to follow railscasts#196 in rails 4

Ashish Chopra
  • 1,413
  • 9
  • 23
MikeW
  • 4,749
  • 9
  • 42
  • 83

1 Answers1

0

Adding this to gem file so I can use strong parameters to follow railscasts#196 in rails 4

Perhaps your app is having a problem with what you're using this gem for. I don't know if you've just upgraded to Rails 4, but the latest version uses Strong Params by default

The Railscast seems to be involved with loading nested forms. We do this all the time without the rails-api gem - can you let us know what you're trying to use this gem for specifically?

Richard Peck
  • 76,116
  • 9
  • 93
  • 147