I recently installed:
- Aptana Studio 1.1.0.007007
- Rails 2.0.2
- Ruby 1.8.6
First thing I noticed was that now I needed SqlLite3. I changed the
database.yml to keep it like before:
development:
adapter: mysql
database: company_development
username: root
password:
host: localhost
I created a project. To my surprise now the .rhtml are now html.erb
And when creating a basic scaffold I can create new (lets say employees)
but the web interface is not showing the forms to enter the values for
the created entries.
Apparently my question is too dummy. But I'm still confused...
I've been working on a project all the time where by default MySql was
used and when creating a scaffold it would create .rhtml files
Now I noticed that I expects Sqlite3 and makes html.erb files.
Have I missed a big thing??
I want to keep using MySql, is changing the yml file enough?
Apparently my question is too dummy. But I'm still confused...
I've been working on a project all the time where by default MySql was
used and when creating a scaffold it would create .rhtml files
Scaffolding in rails has changed, and is no longer dynamic (off the
top of my head i think there's a plugin to have old style scaffolding
if you really want it)
Now I noticed that I expects Sqlite3 and makes html.erb files.
Have I missed a big thing??
I want to keep using MySql, is changing the yml file enough?
Well I guess I'll have to learn to live with it.
I still don't understand what is the point. At least now when trying to
create a basic rails app I have to do more work...
- Change back to MySql
- Scaffold is not creating the controller so I need to create the
controller manually
- The created controller is empty and now I have to fill it myself.
I guess I'm doing something wrong or in the wrong order, otherwise I
don't understand that change.
Well I guess I'll have to learn to live with it.
I still don't understand what is the point. At least now when trying
to
create a basic rails app I have to do more work...
- Change back to MySql
rails -d mysql will create it with mysql setup
- Scaffold is not creating the controller so I need to create the
controller manually
- The created controller is empty and now I have to fill it myself.
that shouldn't be happening - it's just the forms that don't get
autoupdated. Are you doing something like
conclussion (?). I should do like in the first process. But then I
should add the db columns in the scaffold generation as you mentioned.
This created all the basic stuff.
Any info when the dicussed changes where introduced? I wonder what else
I've been missing. I guess I find out soon when I start porting my old
application.