Learning RoR

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.

On Jan 23, 2008 3:19 AM, tonypm [email protected] wrote:

http://dev.mysql.com/downloads/gui-tools/5.0.html

the file you want for windows is:

mysql-gui-tools-5.0-r12-win32.mis

regards
Tonypm


Ryan B.
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.

On Jan 22, 6:46 pm, “Ryan B.” [email protected] wrote:

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.

On Jan 22, 2008, at 4:08 PM, eggman2001 wrote:

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:

lambda {
c = Comment.new
c.attributes = comments(:valid_comment)
c.save
}.should change(Comment, :count).by(1)

lambda {
c = Comment.new
c.attributes = comments(:invalid_comment)
c.save
}.should_not change(Comment, :count).by(1)

I agree with s.ross, it’s much easier to write a test I think.

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.

Yes you only need to install Ruby and Rails as well as MySQL.

On Jan 24, 2008 8:08 AM, zok [email protected] wrote:

PS.: Which MySQL application do they use on the official RoR tuts?

On 23 Jan., 04:49, “Ryan B.” [email protected] wrote:

I agree with s.ross, it’s much easier to write a test I think.


Ryan B.
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.

Hey,

I only need WebRick as my server, a basic local RoR app does not need
Apache and/or PHP, right?
So I only need a MySQL database?

thanks,
zok

PS.: Which MySQL application do they use on the official RoR tuts?

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?

zok

Books:
The Ruby Way
The Rails Way

Editors:
Programmers Notepad
RAD Rails

Terminal

Recommended plugins:
for Rails:
rSpec
Rails::Spec
for Firefox:
firebug
webdeveloper

Hey Zok, you can find the tool at the following location:

http://cocoamysql.sourceforge.net/

However, I use Navicat MySQL prior to Rails 2.0 and you can find it at
the
following location:

http://www.navicat.com/

Lastly, you might want to also consider using migrations for Rails
development.

Good luck,

-Conrad

Just use the MySQL GUI tools
http://dev.mysql.com/downloads/gui-tools/5.0.html

Are there any alternative programs like cocoa for PC, or can I get an
emulator to emulate os x for that program?
… and what are migrations?

thanks for help,
zok

is it possible?

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

zok

zok,

grab yourself a nice Ruby on Rails book and learn all about migrations.
These remove the need for a database admin tool like phpmyadmin.

please, I need your help!

Thanks,
zok

is this the best book to start with?

Ok, I thought about “Agile Web D. with Rails” -->
http://pragprog.com/titles/rails2/index.html

Everyone says that this is the best book to start programming with
RoR. Is it true?
How much does it cost to ship that book to Europe?

Thanks,
zok

PS.: Do you have a coupon code for this shop? Would be nice!

Check out the screencasts on my site too!

On Jan 16, 2008 1:40 PM, zok [email protected] wrote:

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)?


http://www.rubyplus.org/
Free Ruby and Rails Screencasts

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs