June 23, 2012 Tagged: backbone.js rails Comments (View) Backbone.js on Rails hits 1.0 Almost 1 year ago, on July 18, 2011, we announced our book, Backbone.js on Rails . Since that time, we’ve continually written, updated, and refined the content of the book and example application. We...
If you are starting to get a cluttered model space in your Rails application you should consider placing your models in a namespace. As an example I’m going to go through a Rails application I’m calling Recipes. If my models were starting to have the namespace implied in the class nam...
If you want to create a model without a database backend, you simply need to define a couple methods in the model like I show in this episode.
The TrinityLabs Secret Weapon and BatCave
Ubuntu 12.04 and Ruby 1.9.3 Sat 23 Jun 2012 at 22:45 I previously had installed Ubuntu 12.04 on a NetBook, and my overall impression was simply that it was more stable than its predecessor — particularly for Unity. For the first time I tried it on a desktop, and to my surprise the fol...
이 문서는 20분 정도면 따라해볼 수 있는 간단한 루비 튜토리얼입니다. 이 튜토리얼을 따라하기 위해서는 컴퓨터에 루비가 설치되어 있어야 합니다. (아직 루비가 설치되어 있지 않다면, 이곳 에서 다운로드 받아 설치하기 바랍니다.)
Copyright © 2012 Phusion. All rights reserved. Home About Blog Clients Products Services Contact “Phusion” and “Phusion Passenger” are registered trademarks of Phusion. “Rails”, “Ruby on Rails” and the Rails logo are registered trademarks of David Heinemeier Hansson. All other tradema...
Rails is a web application development framework written in the Ruby language. It is designed to make programming web applications easier by making assumptions about what every developer needs to get started. It allows you to write less code while accomplishing more than many other la...
A project I'm working on now is up to 57 model classes and is still growing. That's a lot of classes - welcome to domain modeling. In my opinion, the number of classes is a fair tradeoff that keeps each class simple enough to understand. In some ways it moves complexity out of the mod...
Rails 3 sports a new routing interface. In this episode I show how to translate the old interface into the new one and show off a few new features.
Static pages can sometimes be a little awkward to add to a Rails app. See a couple different solutions to this problem in this episode.
Dir.mktmpdir creates a temporary directory. The directory is created with 0700 permission. The prefix and suffix of the name of the directory is specified by the optional first argument, prefix_suffix . If it is not specified or nil, “d” is used as the prefix and no suffix is used. If...
activity_feed 2.0.0.rc1 Activity feeds backed by Redis install gem install activity_feed --pre Download Documentation Subscribe Stats Authors David Czarnecki 2,409 total downloads 10 for this version Owners Links Homepage Gemfile gem "activity_feed", "~> 2.0.0.rc1" Versions 2.0.0.rc1 ...
330 Better SASS With Bourbon If you are tired of the browser vendor prefixes in CSS, take a look at Bourbon. It provides Sass mixins and functions to make CSS more convenient. Tags: plugins views 328 Twitter Bootstrap Basics Twitter Bootstrap can help make beautiful web apps quickly b...
Active Merchant is a great library for handling credit card transactions. In this episode I will show you the basics of using it to communicate with PayPal's gateway.
Rails is a web application development framework written in the Ruby language. It is designed to make programming web applications easier by making assumptions about what every developer needs to get started. It allows you to write less code while accomplishing more than many other la...
Added by Mario Luzeiro about 1 month ago in config/application.rb:55 it appears to me after I update the latest SVN version. Any ideas? Replies (2) RE: undefined method 'log_path' - Added by Mario Luzeiro about 1 month ago Its related with confif/additional_environment.rb option to ro...
Processing PostsController#create (for 127.0.0.1 at 2008-09-08 11:52:54) [POST] Session ID: BAh7BzoMY3NyZl9pZCIlMDY5MWU1M2I1ZDRjODBlMzkyMWI1OTg2NWQyNzViZjYiCmZsYXNoSUM6J0FjdGl vbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA=--b18cd92fba90eacf8137e5f6b3b06c4d724596a4 Parameter...
Guard::PHPCS automatically runs PHP Code Sniffer when watched files are modified.
Guard::PHPMD automatically runs PHP Mess Detector when watched files are modified.
<%= button_to "New", :action => "new" %> # => "<form method="post" action="/controller/new" class="button_to"> # <div><input value="New" type="submit" /></div> # </form>" <%= button_to "New", :action => "new", :form_class => "new-thing" %> # => "<form method="post" action="/controller...
Over a year ago we had a post about how to build OS X GUI applications with Ruby and RubyCocoa. Since then, however, MacRuby has arrived on the scene. Not just the regular version of Ruby with some bindings to Cocoa, MacRuby is as native to OS X as JRuby is native to the JVM. It's a s...