background preloader

RoR

Facebook Twitter

A Retrospective on Ruby in 2015. This article was peer reviewed by Thom Parkin and Fred Heath.

A Retrospective on Ruby in 2015

Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! We’ve come to the end of 2015, which was a big year in Ruby. I thought it’d be a hoot to go back and look at some of the epics (major themes) of the year and the stories that comprised them. Kind of like a Agile process retrospective where I’m treating 2015 as a set of sprints and seeing how we did. In order to play out this contrived idea all the way, I will need to define the epics. Improve the languageGrow the communityKeep up with the rest of the programming world Those are the epics I’ve defined. Finally, any retrospective worth its weight in gems needs to look at what didn’t work. Improve the Language Ruby Ruby 2.2 was released about a year ago, but I am going to include it in this year’s backlog. 2.2 added many things to the language, as the following stories attest: Battle of the Year. Emphasized Insanity - Creating a Rails authentication system on Mongoid - Part 1.

Preface A few days ago we started our first real all-MongoDB project at Nautilus6.

Emphasized Insanity - Creating a Rails authentication system on Mongoid - Part 1

Up until now we used Mongo only on small time projects, ones that hardly required any data storage at all so this is practically the first real project that we will try (and hopefully succeed) to deploy with Mongo as the data layer. Since we use Rails on this project (Duh) we had to choose between the existing MongoDB adapters for rails: MongoMapper – Which is pretty slick, has some plugin support but also replicates some of the familiar ActiveRecord functionality like: Dirty Attributes, Dynamic finders and magic timestamp attributes. Mongoid – the new child, missing some features from MM (dirty attributes, dynamic finders for example) but does cover some ActiveRecord wonders MM doesn’t: Versioning, named scopes and better validation options.

Remove startup-script with update-rc.d « firmit – FOSS notes. IntelligentBee Tech Blog. Hello party people and polar bears!

IntelligentBee Tech Blog

You were probably wondering how it is you send email using Ruby on Rails. Here’s how you create an automated email system that sends a confirmation email to each new user that registers to your app: 1. First off, in bash, you must generate your mailer, which uses the Rails generate command (pretty much the same way you generate a controller or a model). Assuming you’ve already created your Rails project, to create the mailer you must simply do the following: Convert CSS Snippets to Syntactically Awesome StyleSheets code. Js2coffee: convert JavaScript code to CoffeeScript. GET and POST Parameter parsing in Rails.

Rails gives a developer a lot of support, but it isn’t always clear exactly what’s going on under the covers.

GET and POST Parameter parsing in Rails

One area where I’ve had a bit of frustration is trying to understand exactly what Rails is doing for me when it parses my querystring. Somehow it knows that the querystring cart[items][]=5&cart[items][]=6 should result in an object that looks like: { "cart" => { "items" => [ "5", "6" ] } }. List of Strategies · intridea/omniauth Wiki. This is a list of the strategies that are available for OmniAuth version 1.0 and later.

List of Strategies · intridea/omniauth Wiki

Visit the linked website for additional information about the individual strategies. If you have implemented a strategy and would like to link to it here, feel free! Provider Strategies. Rubular: a Ruby regular expression editor and tester. Ruby on Rails Cheat Sheet. A quick reference guide for Ruby on Rails, containing the default directory structure, predefined variables, methods, reserved words and regular expression syntax.

Ruby on Rails Cheat Sheet

The Ruby On Rails cheat sheet is designed to be printed on an A4 sheet of paper and live by a developers desk, to make life a bit easier. A description of what is on the cheat sheet follows, or if you are impatient, you can go straight to the full size Ruby On Rails cheat sheet. I am no expert in Ruby, On Rails or off, so to ensure this cheat sheet was as useful as possible, I pestered the very helpful Amy Hoy of (24)Slash7 and David Heinemeier Hansson of Loud Thinking into giving me a hand.

Thanks, both of you - I appreciate it. In the same vein, though the cheat sheet has been checked there is a chance there is the occasional typo - if anybody spots a mistake (or something that could be worded better) please let me know. Default Directory Structure Pre-Defined Variables Reserved Words. Ruby on Rails Guides: 레일즈 시작하기. 이 가이드는 레일즈 3.0에 기초합니다.

Ruby on Rails Guides: 레일즈 시작하기

기존 버전의 레일즈에서는 이 문서의 코드가 동작하지 않을 수 있습니다. 1 이 가이드를 시작하기 위해서 이 가이드는 레일즈 어플리케이션을 처음으로 시작하는 초보자 분들을 위해 구성되어 있습니다. 이 문서는 레일즈 경험이 전혀 없다고 가정합니다. 그러나 미리 준비 할 몇 가지가 있습니다. 루비 언어 버전 1.8.7 이상 루비 버전 1.8.7 p248 과 p249 는 레일즈 3.0을 중단 시키는 마샬링 버그를 포함하고 있습니다. 레일즈는 루비 프로그램 언어에서 동작하는 웹 어플리케이션 프레임워크 입니다. 2 레일즈란 무엇인가? 레일즈는 루비 언어로 작성된 웹 어플리케이션 프레임워크 입니다. 레일즈는 주장이 확실한 소프트웨어 입니다. ROR Lab. Wordstory. How to Install Ruby on Rails on Ubuntu 12.04 LTS (Precise Pangolin) with RVM. About Ruby on Rails Ruby on Rails is an application stack that provides developers with a framework to quickly create a variety of web applications.

How to Install Ruby on Rails on Ubuntu 12.04 LTS (Precise Pangolin) with RVM

Ruby on Rails does take a little while to install on a virtual server, but luckily there are a lot of helpful tools to make this process as easy as possible. Ruby on Rails Tutorial: Learn Rails by Example book and screencasts by Michael Hartl. Ruby on Rails Screencasts - RailsCasts.