Looking for Ruby on Rails tutorials.

Homework giving you a headache? Math gives you a migraine? Can't quite figure out how to do something in photoshop? Never fear, the other members of CAA share their expertise in this forum.

Looking for Ruby on Rails tutorials.

Postby anlptgtsg » Tue Feb 12, 2013 10:30 pm

Just asking if you guys know an easy to understand rails tutorial link. I'm planning to learn that programming language but not sure where to start. I did study C++ before and read a little on Java so I have some programming knowledge. Any help is appreciate thank you.
User avatar
anlptgtsg
 
Posts: 266
Joined: Thu May 03, 2012 2:13 pm
Location: Here, there, nowhere....

Re: Looking for Ruby on Rails tutorials.

Postby Dante » Thu Feb 21, 2013 5:27 pm

Ask away - while I just began to learn the language a short time ago, I currently write that language for a living. I'm the resident 'ruby expert' at my job, although my experience totals about a couple of weeks (I prefer Javascript and HTML 5).

For starts - I would recommend trying this out on Ruby Mine instead of doing battle with a simple text editor if you're on a Mac.
User avatar
Dante
 
Posts: 1323
Joined: Thu Mar 04, 2004 8:24 pm
Location: Where-ever it is, it sure is hot!

Re: Looking for Ruby on Rails tutorials.

Postby anlptgtsg » Fri Feb 22, 2013 1:42 am

Can't believe that I planned to start learning about it 9 days ago. Still didn't even start doing anything about it XD. I need to set apart some time for it.
Ty for the advice. I don't use Mac though. And can i ask how long have you been studying Rails. Just so I might estimate a time or a goal for me to learn it.
User avatar
anlptgtsg
 
Posts: 266
Joined: Thu May 03, 2012 2:13 pm
Location: Here, there, nowhere....

Re: Looking for Ruby on Rails tutorials.

Postby Dante » Fri Feb 22, 2013 10:11 pm

I've been working with Ruby between 1-2 months and I still have plenty too learn. However, for most programming applications, one simply needs to understand the basics - comments, strings, arrays, variables, methods, objects ect... You can grab these easily enough from online tutorials or querying stack overflow (Ruby lacks support for 2-D arrays, you must build an array of arrays T_T, you should also avoid it if you're planning on developing on Windows or deploying to a Windows Server as I've been told that such an action will only end in tears. Still if you MUST use SQL, I've played with Tiny TDS a little bit).

The cool part about rails, however, are the erb files - which makes dynamic html programming awesome.

For instance, you can do something awesome like this if you had a collection of countries with different names and country colors.

<% for country in countries %>
<p span="color: <%=country.color%>;"><%= "Hello, " + country.name %></p>
<%end%>

Likewise, you can create the equivalent to master pages under the layout section and pass ruby variables from ruby code from the controller - which is nifty to call classes from ect. The annoying part is adding new pages, as you must add a method to the controller named after the view, an html.erb file to the view and then you have to tie it together by adding the path to the html.erb file to your routes.rb file under environment if I remember correctly. Loads of fun stuff.

Of course, if you're looking for an MVC Framework to work with on Java, you might consider playing with the 'Play' Framework. I've been eyeing it as of late and I'm tempted to download it and give it a run myself as it look rather fun, but utilizes scala files instead of erb files.

http://www.playframework.com/

Also, at the end of the day, I always seem to do more client side then server side programming. I'm extremely stingy about server side resources and I prefer the flexibility and power of the numerous javascript libraries out there (JQuery, Jquery UI, JS Kinetic, Underscore JS, Regex stuff and did I mention JQuery?)
User avatar
Dante
 
Posts: 1323
Joined: Thu Mar 04, 2004 8:24 pm
Location: Where-ever it is, it sure is hot!


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 30 guests