Re: [Rails] Need help for writing Api in Rails 5

2017-01-28 Thread Tushar Garg
Hi Edsil Basadre, 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/artic

[Rails] Re: Need help for writing Api in Rails 5

2017-01-28 Thread Tushar Garg
On Saturday, January 28, 2017 at 7:57:03 PM UTC+5:30, Tushar Garg wrote: > > Hi All, > > 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

Re: [Rails] Need help for writing Api in Rails 5

2017-01-28 Thread Tushar Garg
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/201

Re: [Rails] Need help for writing Api in Rails 5

2017-01-28 Thread Hassan Schroeder
On Sat, Jan 28, 2017 at 5:11 AM, Tushar Garg 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

Re: [Rails] Need help for writing Api in Rails 5

2017-01-28 Thread Edsil Basadre
Can you provide the error logs? On Sat, Jan 28, 2017 at 9:11 PM, Tushar Garg wrote: > Hi All, > > 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 r

[Rails] Need help for writing Api in Rails 5

2017-01-28 Thread Tushar Garg
Hi All, 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 am getting bulk of error and all things are blown. Please anyone provide me step by step

Re: [Rails] when to redraw the page and when to modify the dom using js instead

2017-01-28 Thread Colin Law
On 27 January 2017 at 23:44, fugee ohu wrote: > there's posts on a users page and they're commentable, when a user adds a > comment for a post on the page, i should redraw the page or modify the dom > using js It is up to you. There is no best way, it depends on the how you want the site to beha