PDA

View Full Version : RoR! (Ruby on Rails)



Dentafrice,
02-12-2007, 07:00 PM
It is great!

Personally, I thought it would flat out be ****. It love it though.. Ruby is way easier then PHP and I also love the scaffolding.

The template support is awesome,


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>Caleb Mingle</title>
<%= stylesheet_link_tag 'caleb' %>
</head>
<body>

<p style="color: green"><%= flash[:notice] %></p>

<%= yield %>

</body>
</html>


Every page starts out like that, you just save it in the templates directory as the controller name, and its amazing.



class ContactController < ApplicationController
def show
render :text => "You have reached the show page!"
end
end


Its amazing, anyone else used it/know anything about it?

Implosion
02-12-2007, 07:02 PM
Been planning to have a look at it.

Dentafrice,
02-12-2007, 07:02 PM
Been planning to have a look at it.
You should :)

timROGERS
02-12-2007, 07:02 PM
I've wanted to learn RoR for a while, but I've never really had the chance. By any chance could you comment that code and explain it, because it's confusing me :P

Xarea
02-12-2007, 07:05 PM
Someone define RoR?

Implosion
02-12-2007, 07:05 PM
I'm on a linux, what do I get for it?

.L!nK.
02-12-2007, 07:09 PM
how do you learn ? :S

Implosion
02-12-2007, 07:30 PM
ROFLMAO
ROFLMAO

"how do u learn"

.L!nK.
02-12-2007, 07:33 PM
ROFLMAO
ROFLMAO

"how do u learn"
How is that 'ROFLMAO'

I don't know what it is..?

what is it?

Splinter
02-12-2007, 07:41 PM
I've used it but wasn't a fan. Its just abit awkward really.

Luckyrare
02-12-2007, 07:51 PM
I had a quick look at it and didnt impress me greatly, PHP does the job for me.

Invent
02-12-2007, 10:33 PM
Scriptaculous is aparently a part of RoR, I'm not too sure though :P

I've read about Ruby dozens of times but never really looked into it.

Dentafrice,
03-12-2007, 12:45 AM
Yep, in each Rails app in the public folder is Scriptaculous.

To call it:



<%= javascript_include_tag "prototype" %>


Example:



<%= link_to_remote( "click here",
:update => "time_div",
:url =>{ :action => :say_when }) %>

VistaBoy
03-12-2007, 01:08 AM
i do not like it i like php its dose the job for me!

Dentafrice,
03-12-2007, 01:14 AM
Wat don't you like about it?

Net-Margin
03-12-2007, 01:17 AM
Sitepoint released their RoR book in PDF format for free which is brilliant, although I believe that there have been updates since the book was wrote.

http://www.sitepoint.com/forums/showthread.php?t=506517

RoR is a different language than PHP, and i'm not a lover of it and it's not too appreciated in most web hosts so you have to look at certain places for good hosting, sort of like ColdFusion, I personally prefer Python to both PHP and RoR.

adamFTW
03-12-2007, 01:29 AM
Whoever has the PDF, can you send me it?

Dentafrice,
03-12-2007, 01:57 AM
Send it to me too :P

timROGERS
03-12-2007, 07:52 AM
I was about to post the same :P Send it to me, I would love to learn :D

Tomm
03-12-2007, 08:05 AM
I don't really like it. I don't really get the flexibility that I get in PHP and I don't really want some program generating code for me.

Implosion
03-12-2007, 07:26 PM
Im not too fond of php, or this :(
Seems cool enough though.

LegendOfNoob
04-12-2007, 01:49 AM
Ruby On Rails Wikipedia it u know wiki is ur bro

anyways ive found ruby on rails is a fair langue
it allows me to code something not everyone
is gonna know how to read or rip a good editor
i use is Microsoft Visual Web Developer
Loads of tabs :D
Tip: Get The For Dummies book on it its cheap now in most stores and u get the software included probally about 12.5 euros or something

Want to hide these adverts? Register an account for free!