Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 11-28-2005, 10:49 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
a taste of ruby on rails

i setup ruby on rails on a redhat 9 system tonight. i dove into a beginners tutorial on how to make a cookbook interfacing to mysql.

i setup a new rails app.
i configured the mysql connection info.
i created the table in mysql.
i added what essentially is a new object for a recipe, along with another line of code.

i may be missing a simple step or 2, .. but basically after i tweaked some configs and added a couple lines of code, i had a fully functional editor for recipes. list/edit/add/remove.

it detected the field types and made the appropriate input boxes for each field.

i then added a 'categories' table. my object was named "category" and it knows to associate a 'category' with the 'categories' table. same with the 'recipe' object and the table named 'recipes'

all i could do was laugh. it was sort of amusing and i was thinking that this is cool and all, but it seems like it does too much for me.

well, .. i guess it does too much for you by default .. and then you have to tell it what you want to customize. by the end of the tutorial i can see a bit further into how much more it can be customized .. but i have a feeling i have barely wet my feet.

i'm not 100% sold yet, .. but i'm looking forward to learning more.

here's the tutorial i followed: http://www.onlamp.com/pub/a/onlamp/2...ls.html?page=1
sde is online now   Reply With Quote
Old 12-03-2005, 02:09 PM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I think the point of rails is to push all that db interface code we're so used to writing in php down beyond a level where we need to deal with it. That way we're free to think about whatever problem we're supposed to be solving rather than trying to remember what table holds what data.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ruby? Apodysophilia All Other Coding Languages 5 03-26-2004 05:55 AM
Developers to get first taste of 'Longhorn' CaN Opener Code Newbie News 2 08-25-2003 03:27 PM
Ruby tutorials ntws01 All Other Coding Languages 1 03-19-2003 12:50 AM


All times are GMT -8. The time now is 02:28 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting