Yes, I know very little of ruby. I must take a crash course?
Anyway, I try to ask this here.
I have a control: customer_controller.
From here, I can do something like:
@id = 1
@customer = Customer.find(id)
Now @customer will contain all the fetched record for customer with id
= 1. Great.
From this controller I will render an html page. Somewhere the view
will print test. SOmething like:
“This is your account”
But I want to fetch this text from the database.
The customer table also have a field named lang.
Having a table called “page_texts” I want from customer_controller,
using the field "lang* for the current customer, fetch all the record
for the customer’s language.
Should I do this from customer_controller? Or is it a bad idea?
Do I need to create the lang_controller?
And how do I, from customer_controller, include the rows from the