Ruby on Rails Quickstart - ruby-on-rails

I've just completed a couple of Ruby on Rails books which were excellent. I'd like to know if there are any quickstarts or guides that can serve to jumpstart to my RoR projects but without all of the explanations that I have search through to get the steps. Thanks in advance.

Don't understand since you have read a couple of books and guides, why you would still need a quickstart guide to develop your own app. Rather contradicting. Why don't you just start developing an app from scratch with your awesome idea?
Anyway, to answer your question, try Michael Hartl's Rails Tutorial to build a Twitter app.
Good luck!

(Caveats: I'm too new to post many links so you may need to copy/paste. Not all of these are for the most current versions of Ruby/Rails but they will certainly get you going.)
CLONE TUTORIALS
Twitter Clone
railsforzombies.org
Pinterest Clone
guides.railsgirls.com/app/
Good Reads Clone
zero-to-sixty-creating-and-deploying-a-rails-app-in-under-an-hour
(You will need to do some things differently in Rails 3/4 and just skip the Authlogic stuff altogether.)
GENERAL STARTS
Ruby Guide
getting_started.html (also noted above)
Sitepoint Tutorial
building-your-first-rails-application-models
STARTER APPLICATIONS
Bort
github.com/MattHall/bort/tree/master
BaseApp2
github.com/dannymcc/BaseApp2 (requires QT SDK # qt-project.org)
Boilerplate
github.com/npverni/rails-boilerplate-script
SPECIFIC USE STARTER APPS
Community Engine
communityengine.org
Tog
toghq.com
Open Source Rails
opensourcerails.com (Library of apps; build on the shoulders of giants, geniuses/genii, and semi-talented braggarts)

How about this one?
http://guides.rubyonrails.org/getting_started.html

If you read Ruby on Rails Tutorial: Learn Rails by Example then you should be good to go. If not you could go through that book it is free online here.

Related

Install and start programming Ruby on Rails on Mac?

I would like to try ruby on rails on mac. I want to install ruby on rails, tried to find some guide for installation, and I get this:
ruby on rails official website??
It does not have a clear, I mean, well documentation for beginner to follow the steps? Or, thats all for the installation? How to start the webserver, where to store ruby files etc, ... how do I get started???
Any advise, or links or tutorials for a total ruby beginner to get started?
This is their official guide:
http://guides.rubyonrails.org/getting_started.html
You need to install xcode first though to avoid some errors. This is because some of the headers in the default ruby install on macs is incomplete without it.
Well you need GCC, which used to be with XCode only but over at ye olde GitHub, it's been packaged as a standalone. Next up you can follow either this tutorial by Katz or Dan Benjamin's guide on HiveLogic.
Keep in mind the state of the art in Ruby and Rails is fast moving so the guides might not take you all the way there. The most crucial parts are getting RVM installed properly and working and getting everything on the right version. It's not too tricky to work through, and there's probably no undocumented issues in the process now.

How to update rails 3.0.3 to 3.1?

How do I update to Rails 3.1 ?
I am using windows xp with ruby console.
And is there a smart way to update a rails app from 3.0.3 to 3.1 or do I need to rewrite it all?
This question has a lot of useful information which might help you out: Upgrading from Rails 3 to Rails 3.1
It doesn't answer specifically for Windows, but there's a lot of advice and insight that you'll find useful for the upgrade.
The only advice I can offer on top of reading the answers in the above question is to have a bit of patience and not expect it to work straight away. There's a lot of changes in the way 3.1 works so expect to spend some time fixing it up.
Good luck!
I created one vanilla 3.0 site, added it to Git, then created a vanilla 3.1 site and copied it over the 3.0 site, deleting existing files first. A diff then showed me exactly what changed.
I would strongly recommend this and the following two railscasts in the series

Well built rails code for download

I want to get into rails by examining well built code
where can i find typical open source rails project that i can download
and learn from ?
i'm interested in facebook connect integration (facebooker), tag clouds, searching in
my website
I'm not looking not tutorials or screen casts
Thanks!
This question gives a good list
a list of projects with good test-suites
a list of open source rails apps to learn from
Have a browse of ruby tool box and download some open source. For example there's refinery and zena, two content management systems and Rboard, a forum. Depends what you want really but there's plenty out there. Ruby toolbox entries are ordered by github watchers and forks to give you an idea of their popularity.
I really like looking at the commits in teambox.
I find it a bit more complicated. But there's also spree.
There's also devise which is really interesting to look at too.
Finally, I'd recommend you to follow the rails commits (it's the only commits feed I have in my Google Reader).
Gady, this is an extremely rich topic you're asking about and resources are all over the internet. Try starting at http://rubyonrails.org/.
You should be able to find tens of questions just like yours (asked and answered) by searching SO at the top bar.
For Rails, part of it is the building process, so one feasible approach is to read a tutorial like http://railstutorial.org/book
then when in Chapter 2, you will use Scaffold, and at that time, you will have some basic code to look into how a basic Rails app is.
I also suggest you use source control like Git, Mercurial, or SVN to commit different phases of the project, from creating the rails project and then after each step, so you can diff what the changes are during each step.
If you already have Ruby 1.9.2, Rails 3.0.1, and sqlite3, then you can
rails new myproj
cd myproj
rails generate scaffold foo name:string salary:integer gpa:float note:text
rake db:migrate
rails server
and now you can use http://localhost:3000/foos to create, display, update, delete the foo records, and have quite a bit of source code to look at. Most of the customizable code is in app, with css and javascript in the public folder.
Ryan Bates has an excellent series of videos.
http://railscasts.com/
An extremely valuable resource.
Radiant is a CMS that you can download for free and see how it works. It is a great piece of code to look at and see how it works.
I guess that most open source Rails projects are shared on Github, so it may be interesting to browse its Ruby section and look for most watched or most forked projects:
http://github.com/languages/Ruby
Steady stream of new interesting projects to take a look at :)
And don't forget the official:
guides.rubyonrails.org
well there is one "bigger" project on github, waiting for downloading and contribution...
but it's a little controversial because of the security issued they have (had?)
It's still worth a look:
http://github.com/diaspora/diaspora

Good code sample in rails

I have been developing in rails for the past 1.5 years .. however , I feel my code is not upto the mark , and I still dont fully utilize all that Ruby and Rails have to offer .
I have gone through all the material that is available on the guide site , and have incorporated that in my code . However , every time I see someone else's code , I find out new things about the language like idiomatic syntax etc . I was wondering if there are some really good code samples of rails that people can refer which would help me speed up my progress in rails . It can be anything , like some open source plugin or a app that has really high code standards .
You can start from GitHub. There are tons of Rails plugins and apps available.
Here's just a few examples:
GemCutter
Spree
Fat Free CMS
Insoshi
Plugin authors
Thoughtbot
Ryan Bates
Bynarylogic
Joshua Peek
My favorite and commonly used gem/ Rails plugin is will_paginate. Pagination is pretty common in any web applications.
will_paginate is hosted on GitHub. It works as a standard gem.
If you want to learn about Rails plugin development including how to read the code, you might want to read Plugin Patterns in Rails 2.
Have a look at Mephisto, a blogging platform written in Rails: http://mephistoblog.com/

Coming back to Rails

So I've decided after a few years away, that I want to get back into Ruby on Rails for some of my personal projects. What I'm wondering is what are the best resources to find out what the new features are in rails? I haven't really even touched Rails since 1.2 was new.
Oh yeah, and is TextMate still the defacto editor for RoR on the Mac, or has something better come along?
Check out the official Rails Guides. These should provide a nice overview of Rails (if you are rusty) and are kept up-to-date with the latest versions.
You may want to check out Ryan Daigle's Edge Rails posts which covered features as they were added to the new versions. Use the dates to determine where to start and go through each one. He also has a PDF for $9 which covers upgrading to Rails 2.1.
I have also covered the changes on Railscasts. Check out the various tags for each version to see them: 2.0, 2.1, 2.2, 2.3.
Update: Thoughtbot blog has posted about upgrading to Rails 2.1 and 2.3.2.
I found the book Agile Web Development With Rails (3rd edition) to be the most helpful to get me going again earlier this year. In particular it notes some concepts that have changed as well as introducing the new items.
Regarding editing, Textmate still seems to be #1 among the MacRails folks, the text-editing ones, at least.
Beyond that, there are some IDEs around now, if that's your preference. They're starting to become fairly not-awful, which is pretty impressive really. There are plenty of questions here that touch on the topic: try searching for "ruby rails ide"
The Ruby Toolbox is a great and fairly new resource for seeing what gems/plugins/tools are popular for various aspects of your application such as authentication, testing frameworks, search, etc. It's based on the number of watchers and forks each project has on GitHub, which is a reasonably good way of judging popularity.
As for a newer editor ...
I have found that sublime text is a great editor for ruby and rails projects, it has great syntax highlighting out of the box, Vim keybindings available (vintage mode), a sweet package system to add functionality for other languages like SASS or Coffeescript and an excellent file browser that helps with complex folder structure that can happen in a rails project.
Also, it is highly extendible and configurable, I switched to it from Vim.
http://www.sublimetext.com/

Resources