Current location: Hot Scripts Forums » Programming Languages » Other Languages » Help, I'm a Ruby newbie.


Help, I'm a Ruby newbie.

Reply
  #1 (permalink)  
Old 07-05-10, 02:35 PM
FireflyX's Avatar
FireflyX FireflyX is offline
Newbie Coder
 
Join Date: Nov 2009
Location: Stockton, UK
Posts: 37
Thanks: 8
Thanked 0 Times in 0 Posts
Help, I'm a Ruby newbie.

I'm used to programming in PHP but I'm currently working with a system that uses Ruby on Rails so I need to learn a few bits of Ruby code. Anyway first script that I try to write won't work and I can't figure out why:

Code:
<%
case page
        when "terms"
        require url_prefix + "terms.html"
        when "about"
        require url_prefix + "about.html"
        else
        require "home.rhtml"
end
%>
If anyone could help it would be appreciated, Thanks.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
List of Ruby Tutorials and Resources digioz Other Languages 1 03-01-09 09:33 PM
Senior Ruby On Rails Developer (VIRTUAL) amasters Job Offers & Assistance 0 04-30-08 10:41 AM
Ruby on Rails with Apache zoliky Other Languages 5 04-16-08 10:31 AM
Newbie webbie tolongges New Members & Introductions 3 09-13-04 05:11 AM


All times are GMT -5. The time now is 03:49 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.