May I ask WHY you would ever need to use the GUI tools? You have migrations
for altering/creating the tables and script/console for adding new rows.
I use Mysql query-browser (a GUI tool) because it’s a quick way to see
if a new row has been added. I’ve also used it for situations where
I’ve had to insert data into a column after adding it to the schema.
I use Mysql query-browser (a GUI tool) because it’s a quick way to see
if a new row has been added. I’ve also used it for situations where
I’ve had to insert data into a column after adding it to the schema.
I suppose we all fall prey to verification by anecdotal observation,
but a good test would be far more effective. If you use Test::Unit,
you can use assert_difference. So, if you want to know whether you are
adding a comment to your blog,
assert_difference ‘Comment.count’ do
c = Comment.new
c.attributes = comments(:valid_comment)
c.save
end
assert_no_difference ‘Comment.count’ do
c = Comment.new
c.attributes = comments(:invalid_comment)
c.save
end
Now you know you are inserting the row but only when it passes
validation.
If you prefer rSpec to Test::Unit, that might look like:
Not just easier but also just smarter. “eyeing it” works that one time
really quick. but to have it work every time you make a change to
anything, you would need to “eye” it again. once the test is written,
you never have to worry again, just run the tests and any regressions
will be immediately noted.
Jeah, but on the official RoR tutorials on www.rubyonrails.com,
especially on the blog in 15 mins tut, they’re using a kind of MySQL
Admin tool.
Can you give me a link where I can download this tool?
yeah but that’s not as easy as cocoa or phpmyadmin, right?
I only want to make databases in a very quick way and I also want to
be able to drag and drop the fields. like you can see on http://media.rubyonrails.org/video/rails_take2_with_sound.mov
How can I run such an app on a server (the tutorials ony mention how
to run it locally)?
What kind of software do I need (editor, console?, packages)?
Which software would you recommend (PC)?