RSS

What Ruby On Rails is, and the only other three things you really need to understand to get started


Bob Roberts:

My favorite quote:
“The terminal is a piece of voodoo”
I totally felt that way the first time in a console!!

Originally posted on Ruby Warriors:

What is Ruby On Rails?

Ruby is a programming language. Hardcore code – the stuff that’s impossible to understand for an untrained person. You can do stuff with this language; anything, really. You can program stuff, write software with it etc.

Rails is bit like a piece of software you use to

View original 530 more words

 
Leave a comment

Posted by on January 5, 2015 in Ruby on Rails

 

2014 in review


The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 13,000 times in 2014. If it were a concert at Sydney Opera House, it would take about 5 sold-out performances for that many people to see it.

Click here to see the complete report.

 
Leave a comment

Posted by on December 31, 2014 in Ruby on Rails

 

Creating a Simple Form with Rails


Bob Roberts:

This is a great write up that I thought that I would share ;)

Originally posted on Cindi Writes Code:

Form helpers are designed to make working with resources much easier compared to plain HTML.

http://guides.rubyonrails.org/form_helpers.html

http://api.rubyonrails.org/ – search for “form_for” to find under ActionView::Helpers::FormHelper

We can use a form builder to create a form within an .erb template. The main form builder for Rails is provided by a helper method called “form_for”.  Example code:

The form_for helper creates a form that allows the user to create or update the attributes of a specific model object.

The method can be used in several slightly different ways, depending on how much you wish to rely on Rails to infer automatically from the model how the form should be constructed. For a generic model object, a form can be created by passing form_for a string or symbol representing the object we are concerned with.

In the example above, we are passing in the article object (“:article”).

The variable f yielded to the…

View original 977 more words

 
Leave a comment

Posted by on December 26, 2014 in Ruby on Rails

 

Pretend to generate without really generating!


Bob Roberts:

Hmmmm, I never knew this :(

Originally posted on Ruby Warriors:

When running ‘rails generate’, you can add a -p (pretend) flag at the end of the command to see what the output will look like, without actually running it. Very handy!

View original 72 more words

 
Leave a comment

Posted by on December 26, 2014 in Ruby on Rails

 

How to easily create a simple static page on a Ruby on Rails Website


Bob Roberts:

Simple and easy. I have seen this over thought majorly before.

Originally posted on Ruby Warriors:

I don’t know about you, but I’ve done a few tutorials, studied a few materials, and none of them just put this all into one place.

View original 473 more words

 
Leave a comment

Posted by on December 26, 2014 in Ruby on Rails

 

Improving my developer workflow


From time to time, I look around the web to see what there are for new tools or add-ons to improve my workflow as a developer.  Last night I found two really awesome things!!!!

I am a big fan of HAML, SASS and trying to get on the CoffeeScript bandwagon …  That being said, I work on legacy applications and find myself converting HTML to HAML and CSS to SASS.  There are some great free sites out there they will do these conversions.  Then I found Rails Magic Clipboard package for Sublime Text.  From their site:

Sublime text plugin to convert CSS, HTML or JavaScript in the clipboard to SASS, CoffeeScript or HAML on your screen

What? Seriously??  This kicks ass.  I now can copy a HTML page, change the page to .haml and paste the same code in as HAML code!!  Kudos to @nmdowse !!

The next thing is just an app for your Mac.  One way to improve your workflow is to use shortcuts.  Alias’s or keyboard shortcuts or whatever.  Enter CheatSheet. It is easy to install, now I can just go to one of my applications (like Sublime Text), hold down the CMD key and boom!  A popup of the main shortcuts available.  No need for 50 different cheat sheets now!!

 
Leave a comment

Posted by on December 10, 2014 in Ruby on Rails

 

Deploy Ruby on Rails Tutorial (link)


As someone that finds it hard to make the time to post regularly, I am totally impressed with this tutorial for setting up a Rails server:

Props to Ruby Tree Software !!!

Deploy Ruby on Rails Tutorial

 
Leave a comment

Posted by on December 10, 2014 in Ruby on Rails