Re: [Rails] What does the model association option -> mean? order matters?

2016-07-22 Thread Walter Lee Davis
> On Jul 21, 2016, at 5:05 PM, S Ahmed wrote: > > Currently I have this and it works: > > has_many :reports, -> { order(id: :desc) } > > I added this and it works: > > has_many :reports, -> { order(id: :desc) }, :dependent => :destroy > > But this doesnt: > > has_many :reports, :dependent =

[Rails] Chapters 7 to 8 - Loss of "Create My Account" button

2016-07-22 Thread Howard Gilbert
I am completely new to Rails and have started working through the online version of Ruby on Rails Tutorial (Rails 5). I am currently baffled and hope someone may be able to suggest something to help At the end of Chapter 7 I had the "Create My Account" button working both with valid and invali

[Rails] Re: ROUTING ERROR" "No route matches [POST] "/signup - addendum to previous post

2016-07-22 Thread Howard Gilbert
On Thursday, 21 July 2016 16:36:24 UTC+1, Howard Gilbert wrote: > > Where I have said pressing "Signup" I should have said pressing "Signup" > filling in the form and then pressing "Create my Account" > The original post, to which this adds, seems to not have appeared. So this post should be

Re: [Rails] Re: ROUTING ERROR" "No route matches [POST] "/signup - addendum to previous post

2016-07-22 Thread Colin Law
On 22 July 2016 at 15:06, Howard Gilbert wrote: > > > On Thursday, 21 July 2016 16:36:24 UTC+1, Howard Gilbert wrote: >> >> Where I have said pressing "Signup" I should have said pressing "Signup" >> filling in the form and then pressing "Create my Account" > > > The original post, to which this a