Re: [Rails] manually creating a route to...

2018-10-29 Thread Joe Guerra
oh I solved my problem. On Wednesday, October 24, 2018 at 12:09:44 PM UTC-4, Walter Lee Davis wrote: > > It is really worthwhile googling REST and Rails, and reading about the > underlying expectations of the Rails framework. If you do things the way it > expects, then your job becomes easier. N

Re: [Rails] manually creating a route to...

2018-10-25 Thread Joe Guerra
Ok, I created a new controller for invoicing and removed it from my [static] pages controller. On Wednesday, October 24, 2018 at 1:27:25 PM UTC-4, Joe Guerra wrote: > > Yes, I know I've run plenty of scaffolds and generated lots of models. > > I just didn't think I would need to do this, but now

Re: [Rails] manually creating a route to...

2018-10-24 Thread Joe Guerra
Yes, I know I've run plenty of scaffolds and generated lots of models. I just didn't think I would need to do this, but now it seems reasonable not to upset the apple cart in order to update one field in a table. I've already got the method in my controller in my invoicing class - just need to

Re: [Rails] manually creating a route to...

2018-10-24 Thread Walter Lee Davis
It is really worthwhile googling REST and Rails, and reading about the underlying expectations of the Rails framework. If you do things the way it expects, then your job becomes easier. Not trivially easy, but considerably easier. Are Invoices structurally different than a Page? Do they need se

[Rails] manually creating a route to...

2018-10-24 Thread Joe Guerra
I've got a pages controller [which is a catch all for most pages on my site] and in it, I have defined an invoice page. Just a bunch of users I would need to invoice [manually for now] so, I created a method called 'update_invoice_link'. how would I manually create this route and what action o