background preloader

Rubyonrails 2

Facebook Twitter

Visualstudio

Bort! Now with OpenID! Just a small update on Bort.

Bort! Now with OpenID!

Bort Project Page I decided to make a dedicated page for Bort, so I only have one place to keep up to date. Bort Project Page Open ID Authentication I’ve integrated OpenID with RESTful Auth on Bort in the new version. User Voice! We’ve set up an account on User Voice so you guys can submit ideas and all that jazz to us, then we can act like power hungry sultans and deny your ideas. Bort @ User Voice Bort is Popular! At this moment in time, we have 239 watchers on Github and are the 25th most popular project.

Software Brews: Ruby Mock Objects. Creating JavaScript widgets in Rails. By Ilya Grigorik on June 05, 2007 The proverbial widget economy is running at full steam, and in order to keep up with the times I decided to create some custom JavaScript widgets for one of my Rails projects.

Creating JavaScript widgets in Rails

In the end, the process came out to be remarkably simple; you should be up and running in no time as well. Pick an architecture The choice of how to build the widget comes down to a relatively simple factor: it all depends on the complexity of the HTML layout. If you're just trying to inject a few lines of text and don't have to worry about complex CSS structures, then you can use JavaScript to directly write into the DOM of the recipient document. The catch is, having an iframe is great, but it results in two requests to the server: one to fetch the JavaScript file, and second to load the content of the iframe itself. Widget backend in Rails For our purposes, we will replicate del.icio.us's widget for sharing bookmarks in the code below.

Sharing & embedding the widget. The anatomy of a Ruby Gem via reddit.com. First Step on Ruby Metaprogramming via reddit.com. Boson: A Next Generation Task Framework for Ruby via reddit.com. High Quality Ruby on Rails Example Applications via reddit.com. A Wealth Of Ruby Loops And Iterators via reddit.com. How to setup your Rails server right - Part 1 via reddit.com. Rails Envy - It's not the size of the app that matters, it's how you code it. Getting Started with Rails.

1 Guide Assumptions This guide is designed for beginners who want to get started with a Rails application from scratch.

Getting Started with Rails

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! How Ruby Mixins Work With Inheritance via reddit.com. Ruby Best Practices: A Review via reddit.com. WxRuby for the Lazy via reddit.com. Ruby Best Practices: mini-interview 3. Gregory Brown (@seacreature) recently announced two things: 1) that he's content-complete with his Ruby Best Practices book, and 2) that he's started a Ruby Best Practices Blog.

Ruby Best Practices: mini-interview 3

Between the two, it seemed like a great time to run a third interview (you can read the first and second to catch up if you'd like). If you're anxious to get your hands on the book (which is due to be released in June, you can always grab the shortcut straight from O'Reilly. Now that you've finished the text of Ruby Best Practices what's left before we see the book hit the shelves? Gregory Not too much on my end, which means I can come up for air a bit. So now, all that's left to do is wait for production to do all the magic that's necessary to make my manuscript into a book, and then I'll need to take a couple passes through to catch any last minute problems before the book goes off to print in June.

We will also be sneaking in a foreword at some point from a special guest, but I'm not revealing who it is just yet.