background preloader

“Crazy Deep” Rails 3.1 Example Apps and Tutorials

“Crazy Deep” Rails 3.1 Example Apps and Tutorials
Related:  Ruby on Rails

RailsApps/rails_apps_composer - GitHub Getting Started with Rails 1 Guide Assumptions This guide is designed for beginners who want to get started with a Rails application from scratch. It does not assume that you have any prior experience with Rails. Rails is a web application framework running on the Ruby programming language. If you have no prior experience with Ruby, you will find a very steep learning curve diving straight into Rails. There are several curated lists of online resources for learning Ruby: Be aware that some resources, while still excellent, cover versions of Ruby as old as 1.6, and commonly 1.8, and will not include some syntax that you will see in day-to-day development with Rails. 2 What is Rails? Rails is a web application development framework written in the Ruby programming language. Rails is opinionated software. The Rails philosophy includes two major guiding principles: 3 Creating a New Rails Project The best way to read this guide is to follow it step by step. 3.1 Installing Rails Open up a command line prompt. 4 Hello, Rails!

Sites You Love Built With Rails You’ve heard of Ruby, and maybe even Rails. But did you know that some of your favorite sites are built on that framework? You’ll find music, sports, jobs, crowdsourcing, education, and fun and games (literally!) And what they all have in common is that they were created using Ruby on Rails, an amazing – and super popular! Even better news? So, check out these 37 sites that you love that use the very elegant and very in-demand Rails… and get ready for a career you love with Rails! Psssst – Can you guess why there are exactly 37 sites on this list?? 1. 500px 500px is looking for a Senior web developer with strong knowledge of Ruby on Rails. 2. Airbnb is looking for a full-stack software engineer with Ruby on Rails experience. 3. A List Apart is featured as a Ruby on Rails “Success Story” on the Ruby blog. 4. Ask.fm is looking for a senior Ruby on Rails developer to help them grow and develop. 5. Basecamp is proud that Ruby on Rails is its “heart and soul” – of course! 6. 7. 8. 9. 10. 11. 12.

Ruby on Rails Tutorial: Learn Rails by Example | Ruby on Rails 3 Tutorial book and screencasts | by Michael Hartl Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). This book by Michael Hartl came so highly recommended that I had to try it, and the Ruby on Rails Tutorial is what I used to switch back to Rails again. Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. The linear narrative is such a great format. Enjoy! Derek Sivers (sivers.org) Founder, CD Baby Acknowledgments The Ruby on Rails Tutorial owes a lot to my previous Rails book, RailsSpace, and hence to my coauthor Aurelius Prochazka. I’d like to acknowledge a long list of Rubyists who have taught and inspired me over the years: David Heinemeier Hansson, Yehuda Katz, Carl Lerche, Jeremy Kemper, Xavier Noria, Ryan Bates, Geoffrey Grosenbach, Peter Cooper, Matt Aimonetti, Gregg Pollack, Wayne E. About the author Copyright and license 1.1 Introduction

When NoSQL Databases Are — Yes — Good For You And Your Company The proliferation of non-relational databases in the tech sector these days could lead you to think that these data management tools (also known as NoSQL databases) are eventually going to make traditional relational databases extinct. Not so. Each of these database types is best suited for very different types of workloads, and that's going to prevent either one from tromping the other into the dust. Which means that IT and other managers are going to have to figure out which approach is best suited for the task at hand. In this two-part series, I'll examine the capabilities of both NoSQL and relational databases to help you make the right decisions for your organization. "NoSQL"? Right off the bat, NoSQL databases are unique because they are usually independent from Structured Query Language (SQL) found in relational databases. See also: Relational Databases Aren't Dead—Heck, They're Not Even Sleeping NoSQL databases are designed to excel in speed and volume. Go Big Or Go Home Downtime?

How I Learned Enough Ruby On Rails In 12 Weeks To Launch Freelancify • JamesFend.com (Update February 26, 2013: I have since this post sold Freelancify.com to a new owner) Before I begin, I’d like to recognize Josh Crews ( for convincing me to learn Ruby on Rails; without him and his hours of volunteered mentership and help, I wouldn’t be writing this today. Thank you. I’d also like to address Please do not email me asking me to program your app for equity. On January 23rd, I launched my dream idea, Freelancify.com. And exactly 12 weeks ago, I made the best decision I’ve made in a really, really long time. A correction I’d like to address: Previously, I stated in a post that I learned Rails in 8 weeks; doing an exact recount to launch date, it was more so 12 weeks. What Skills Did I Have Prior To Learning Rails? Why I Decided To Learn It? Sat down that night, and just thought for hours. I decided. My Next 3 Months – Mission: Get an MVP up, had to be enough to work but also not crappy enough to leave a terrible first impression. That’s it guys.

File: HAML_REFERENCE Haml is a markup language that’s used to cleanly and simply describe the HTML of any web document, without the use of inline code. Haml functions as a replacement for inline page templating systems such as PHP, ERB, and ASP. However, Haml avoids the need for explicitly coding HTML into the template, because it is actually an abstract description of the HTML, with some code to generate dynamic content. Features Whitespace active Well-formatted markup DRY Follows CSS conventions Integrates Ruby code Implements Rails templates with the .haml extension Using Haml Haml can be used in three ways: as a command-line tool, as a plugin for Ruby on Rails, and as a standalone Ruby module. The first step for all of these is to install the Haml gem: gem install haml To run Haml from the command line, just use haml input.haml output.html Use haml --help for full documentation. To use Haml with Rails, add the following line to the Gemfile: gem "haml" may be compiled to: Rails XSS Protection Ruby Module Options then <?

Home Mongoid (pronounced mann-goyd) is an Object-Document-Mapper (ODM) for MongoDB written in Ruby. It was conceived in August, 2009 during a whiskey-induced evening at the infamous Oasis in Florida, USA by Durran Jordan. The philosophy of Mongoid is to provide a familiar API to Ruby developers who have been using Active Record or Data Mapper, while leveraging the power of MongoDB's schemaless and performant document-based design, dynamic queries, and atomic modifier operations. This is the site for Mongoid 3 documentation, along with Origin and Moped. class Artist include Mongoid::Document field :name, type: String embeds_many :instrumentsend class Instrument include Mongoid::Document field :name, type: String embedded_in :artistend syd = Artist.where(name: "Syd Vicious").between(age: 18..25).first syd.instruments.create(name: "Bass") syd.with(database: "bands", session: "backup").save!

13 Reasons You Should Learn Ruby on Rails This week, we launched the brand new Ruby on Rails Blueprint. ::applause!!:: The Skillcrush team is SO excited about this new blueprint, because once you learn Rails, you can build basically ANYTHING for the web. Here at Skillcrush (and across the Internet!) What is Rails? Sounds fancy. I had a TON of questions, and after asking around, I realized I wasn’t the only one. So I went straight to the source. Here’s the boss: 1. Rails is a web application framework designed to work with the Ruby programming language. Here’s the BIG idea: there is a programming language called Ruby. Let me give you an example. If I want to print something to the screen in PHP I need to write: echo “Hello World”; Notice the semi-colon? On the other hand if I wanted to do the same thing in Ruby alls I would write is: puts “Hello World” No semi-colon, and puts may be a little… juvenile, but it makes more intuitive sense to me than echo. So, anyways, the only problem with Ruby was that it’s not designed for use on the Web.

Latest Free Screencasts from Screencasts.org Creating a Bookmarklet with Remote JavaScript Code → In this quick free JavaScript video tutorial we'll show you how to load in a remote JavaScript file in to a bookmarklet. View Episode → Creating a Simple Bookmarklet → In this quick free JavaScript screencast we'll show you what a bookmarklet is, and how to create one. View Episode → Introduction to CoffeeScript → Want to know what all the fuss is to do with CoffeeScript? View Episode → Creating iPad Apps with JavaScript using Titanium → Free video tutorial on how to build iPad apps with Javascript using Titanium Mobile. View Episode → How to Use RVM → In this free screencast we'll introduce you to RVM: Ruby Version Manager. View Episode → How to Use Homebrew → In this free screencasts we'll show you how to use Homebrew, the fast Mac OS X UNIX package manager. View Episode → Configuring ActiveRecord in Sinatra → In this free screencast we'll show you the various ways of configuring ActiveRecord in a Sinatra setting. View Episode → View Episode →

10 Reasons Beginners Should Learn Ruby on Rails If you're new to programming, what language should you learn first? I often get asked the question: “What programming language should I learn?” If you’re totally new to programming I highly recommend Ruby on Rails. In this post I’m going to give 10 reasons why I think new programmers should start with Ruby on Rails. 1. Ruby on Rails is a web application framework. It is NOT the same thing as Ruby. 2. Basecamp, Airbnb, Bleacher Report, Fab.com, Scribd, Groupon, Gumroad, Hulu, Kickstarter, Pitchfork, Sendgrid, Soundcloud, Square, Yammer, Crunchbase, Slideshare, Funny or Die, Zendesk, Github, Shopify. Enough said. 3. It’s not the most in-demand thing to learn for jobs in general – there are way more job openings out there for things like Java, PHP, even Python – but in terms of working at a startup, great Ruby on Rails developers are some of hardest people to find. 4. 5. The Ruby on Rails community is one of the most active out there. 6. 7. Literally dozens. 8. 5.times { print "Odelay!" 9. 10.

aRailsDemo | Building a Ruby on Rails Website Ruby on Rails Guides Learning Rails in One Month I think just about anyone can learn to code in one month. Last August, I taught myself Ruby on Rails and was able to build my own application in under one month. Then I went on to win a hackathon on my own against 300 other experienced programmers. I didn’t have any formal computer science background or programming experience. Here’s how I did it: A friend of mine suggested I start with Ruby on Rails, so I got my hands on as many beginner Ruby on Rails tutorials as I could. I didn’t focus too much on understanding everything the first time, or get frustrated when I didn’t get something, because I knew I’d come back to it again later in the next tutorial. As a result, I learned a lot about the right way to explain something so that it actually makes sense. Because they teach things ass-backward. When you look at what’s available out there in terms of beginner instructions, there’s very little focus on actual web application development and frameworks like Ruby on Rails or Django.

Related: