I test my small Rails apps using SQLite3, but I think the problem
appeares in every type of database.
When I create table and scaffolding apps, a HTML view is based on
columns types. Everything is OK until I want to change preconfigured
I created table with a column of type INTEGER, but I wanted to display
check box instead of text field and then save 0 or 1 in database. If I
created table with column BINARY, Rails would show me check box
instead of text field, but it is not the case (I have no BINARY data
type, and I do not know Rails has such possibility).
I tried to investigate how Rails automagically displays final web
page, and I find @content_for_layout. I think it is the variable
containing the data types the user wants to type in on “new” page. Is
it correct? Where can I find its definition and overwrite it? I agree
to write a lot of code
I tried to read “Agile Rails…”, but authors missed some explanations
and in the book sometimes has listings I can only type in and observe
the effects, without understanding what happend behind the scene.
Could you recommend a FAQ/manual/how-to?