I have a table called invoices where I store all the invoices, the ones
that I create and the ones that I received.
They have the same fields, the same views, the same data, but I must
differentiate between them.
Actually I have one controller called invoices, and from a starting
page, I add a parameter into the url for the kind of invoice I want to
Now, I have to append this extra parameter in all the urls for
going/accessing the invoices, like pagination urls, edit/show/update/
Would be easier to create another controll for handling this ?
for example, now I have:
and I could use:
with this approach, I can forget about append the extra url parameter,
but I’d have two identical controllers, just the difference about id=2
I’m thinking how to solve this while I learn Ruby on Rails …