Forums | MacLife
You are not logged in.
#1 2005-06-01 12:27 am
Offline
#2 2005-06-01 12:36 am
- registered_user
- bulletproof
- From: padding: zero-pixels;
- Registered: 2000-12-19
- Posts: 16026
- Website
Re: So... Anyone else?
having no knowledge of Ruby on Rails, I'll probably skip it. Though seeing what people do in a day might inspire me to learn something about it!
Offline
#4 2005-06-01 7:46 am
Re: So... Anyone else?
Ruby alone is the most kick ass language I've encountered. I haven't gotten into Rails yet, but Ruby makes me want to do kinky things to my computer.
Hard work may not kill you, but why take chances?
Offline
#6 2005-06-03 3:15 am
Re: So... Anyone else?
Ok, I am sold. RoR is the bomb.
Built my first web app with it today. Very little coding to build a robust tool. (It was a chess score-board/tracking.) Damn. RoR has so much built in and it just handles all the common stuff. It makes PHP look like Perl in comparison.
---
We have our app pretty planned out. Figured out what each we are going to do and roughed out on paper. We are ready to go.
Offline
#7 2005-06-03 10:03 am
Re: So... Anyone else?
I've been curious about RoR for some time now. Now that I've read up a little more on it I'm very intruiged. My next question would be what is the hosting support for RoR like? And is it something to use for something like a content management system or is it more for a controlled internal environment?
Tell me! Tell me!
Offline
#8 2005-06-03 12:02 pm
- zakatak
- Member

- From: Kalamazoo
- Registered: 2004-08-05
- Posts: 565
Re: So... Anyone else?
Gipetto wrote:
Tell me! Tell me!
Me too. 
Although I'll probably look into it myself a little bit deeper later this summer...
but I am intrigued... anything that makes 'PHP look like Perl' is something that could likely [booming voice]take over the world[/booming voice] in not too long. Especially with the learning curve being as gracious as it appears to possibly be...
Offline
#9 2005-06-03 12:21 pm
Re: So... Anyone else?
There are several hosts for ruby. I believe it can be installed pretty easily on just about any box. I don't beleive you need to recompile the os or anything, but I am not sure. (It installs on a Mac very easily, ruby is already there.)
You can make a cms in just a few lines. The frameworks handle all the common web app stuff. (and can be easily extened). Basically you just create your table, tell rails to generate a controller and you are almost done. The controller interface by default displays the data, allows you add new records, delete and edit. You don't write any sql queries. You just define the data relationships. It is damn fine.
Offline
#10 2005-06-03 12:27 pm
Re: So... Anyone else?
The syntax is different. No semicolons, no curly braces (at least for control structures) no $ for strings.
Also conceptually you work on a higher level. You deal with how the data relates rather than building queries and loops. For example in the first app that we built, the match (the results of chess games) You just define the model like this:
Code:
class Match < ActiveRecord::Base
has_and_belongs_to_many :players
belongs_to :winner, :foreign_key => "winner_id", :class_name => "Player"
endSo cool.
Offline
#11 2005-06-03 2:21 pm
Re: So... Anyone else?
Not to be a pest, but from there how does it tie into a front end? Do you define templates in html? would you still use a template engine like Smarty?
Offline
#12 2005-06-03 2:49 pm
Re: So... Anyone else?
There is a views folder. It will generate any that you don't define specifically. You build .rhtml files. They are a cross between smarty/php.
The whole thing is more abstracted than the normal way you build a site. You have your objects which just display by pointing to them in the url. In the example we built, there is a player class which is also the table in the database. By pointing to "http://sitename.com/player" and it will display a table of the content. This of course can be modified. Pointing to "http://sitename.com/player/new" displays a form to create a new player. New, edit and destroy are built in. You don't have to create the pages or the medthod to read the url. It is an application with scripts.
I may not be explaining it well (or even correctly). Yesterday was my first day with it.
But is not the traditional "pages" and "includes" method. You deal directly with what happens and the data. But yes, templates are part of it and they are very powerful.
Offline
#13 2005-06-03 3:00 pm
Re: So... Anyone else?
Hm, that actually sounds great.
Offline
#14 2005-06-03 11:35 pm
Re: So... Anyone else?
I looked at it in like January. I (don't believe) it's on my host, so I'm only but so interested, but maybe it's time to fire it up on the powerbook and take a look.
Basseq is me, John Whittet.
(Finishing the remainder of the thought expressed in the post has been left as an exercise for the reader.)
Offline
#18 2005-06-04 10:59 am
Re: So... Anyone else?
Working late at night on a Friday? Jeepers man.
Look at it this way: you've sold as many paintings as Van Gogh—and you have both your ears.
Thanks, Dad.
• www.joelschou.com • www.bothears.com • www.vault25.com • www.fuzzycoconut.com •
Offline
#19 2005-06-04 1:46 pm
Re: So... Anyone else?
Here is the stats so far:
http://railsday.com/stats/usage_200506.html
Check out the user agent breakdown.
Offline
#22 2005-06-04 8:28 pm
- registered_user
- bulletproof
- From: padding: zero-pixels;
- Registered: 2000-12-19
- Posts: 16026
- Website
Re: So... Anyone else?
Scott wrote:
CSS is my enemy.
You should use tables instead of CSS.
Offline
#23 2005-06-04 8:30 pm
- Stan
- Member

- From: Rock Island
- Registered: 2002-04-09
- Posts: 713
Re: So... Anyone else?
registered_user wrote:
Scott wrote:
CSS is my enemy.
You should use tables instead of CSS.
Or frames.
Offline
#24 2005-06-04 8:33 pm
- registered_user
- bulletproof
- From: padding: zero-pixels;
- Registered: 2000-12-19
- Posts: 16026
- Website
Re: So... Anyone else?
why limit yourself to just one? use tables and frames!
Offline


