Hi Hassan,

Those errors were related testing. Becoz lot of things in Rspec are 
depriciated, when I remove Rspec and testing part from it, then its working 
fine. I follow the given tutorial and the concept of Api is clear and I am 
able to write api in rails5.
https://www.simplify.ba/articles/2016/06/18/creating-rails5-api-only-application-following-jsonapi-specification/
 


On Saturday, January 28, 2017 at 9:43:14 PM UTC+5:30, Hassan Schroeder 
wrote:
>
> On Sat, Jan 28, 2017 at 5:11 AM, Tushar Garg <[email protected] 
> <javascript:>> wrote: 
>
> > I am new to rails. 
> > I want to write restful api's in rails. I start following the "API on 
> Rails" 
> > book. 
> > By following that book, I come to know that there are lot of things are 
> > depreciated in rspec, 
>
> I would hope this book tells you what versions of gems it was using! 
> If so you can specify those in your Gemfile and things should work. 
>
> However, if the Rails version in question is no longer supported, then 
> you're better off finding a current tutorial, API-specific or not. 
>
> -- 
> Hassan Schroeder ------------------------ [email protected] 
> <javascript:> 
> twitter: @hassan 
> Consulting Availability : Silicon Valley or remote 
>

-- 
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/033dc1b9-c2f3-4310-b223-11bf62563ab0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to