RailsCasts RailsCasts Collection Name: RailsCasts Release Date: 2013-06-16T07:00:00Z Track Price: USD 0 Collection Price : USD 0 Visit Store
seen from United States

seen from Australia
seen from China

seen from France
seen from Germany
seen from China
seen from China
seen from Argentina
seen from China
seen from China
seen from Germany
seen from Netherlands
seen from China
seen from United States
seen from China
seen from United Kingdom
seen from Netherlands
seen from Netherlands
seen from Singapore

seen from Türkiye
RailsCasts RailsCasts Collection Name: RailsCasts Release Date: 2013-06-16T07:00:00Z Track Price: USD 0 Collection Price : USD 0 Visit Store
wow where would i be without railscasts. this episode taught me how to embed scopes into an activerecord query. pretty sweet.
the path forward is getting clearer for me. basically i need to write custom scopes or class methods for each child. for example, a method that shows has_us_box which indicates whether a project has a us box office. that way i can screen for it easily within an activerecord query. the question is how slow that query might be, and how many sql queries it might involve.
Install Vim Railscasts theme
Link for railscasts theme https://github.com/jpo/vim-railscasts-theme
Install this file as ~/.vim/colors/railscasts.vim
put "colorscheme railscasts" in your .gvimrc
f you are using Ubuntu, you can get the benefit of this theme in your gnome-terminals by taking the following steps: 1: sudo apt-get install ncurses-term 2: put the following in your .vimrc
if $COLORTERM == 'gnome-terminal' set term=gnome-256color colorscheme railscasts else colorscheme default endif
Fumbling My Way Through Devise and OmniAuth
I spent the better part of my morning working through a Rails Cast on getting Devise and OmniAuth to work to together, with the end goal of being able to log into a web app using your Twitter account.
Overall, it was pretty straightforward, but there were definitely a few things taken for granted by Mr. Bates, that I had to find out through extensive googling:
1) OAuth::Unauthorized (401 Unauthorized) issues
A) To resolve these, you should set the Calback URL within your Twitter app to http://127.0.0.1:3000/auth/twitter/callback. I found people suggesting other variation on this, but this particular formulation worked for me.
B) Your entry for your consumer key and consumer secret in config/initializers/devise.rb should look like this:
config.omniauth :twitter, 'GjvORl6eEN5YGYMLqNTTPQ', 'v5K5m70tKqsPbS0VR2pUpbJ23kzd53wHicI0sjyErc'
2) Wrong Number of Arguments in Registrations Controller error
Check out this entry on stack overflow
3) And if you are getting stuck at https://api.twitter.com/oauth/authenticate, it probably means you had initially authorized access to your app then change its type: https://dev.twitter.com/issues/824
I really like FactoryGirl when working on Ruby/Rails projects. I'll have to give CMFactory a try on iOS projects.
There is a good Railscast on why factories are better than test fixtures.
Révélation de Ruby on Rails en France
Bonjour, suite au problème de compétitivité que connait la France en ce moment, railscasts.fr va faire découvrir aux acteurs du Web qu'une petite dose de Ruby on Rails améliorerait rapidement les temps de développement.
Pour cela railscasts.fr a choisi de réaliser en open source et de manière chronométrée, un tumblr-like sous le joli nom de "Diffusions" et tout prochainement disponible sous diffusions.mobi; si vous êtes impatient, plus d'info sera disponible sur railscasts.fr
Jocelyn.
Getting Started with Rails Guides' blog app
I just finished Rails Guides: Getting Started with Rails which takes you through building a simple blog application. It's super-fast, and I was able to complete the whole project in just a few hours.
What I like most about it is the sheer simplicity of the project. Unlike Rails Tutorial's "Sample App", Rails Guides's blog app is uber-basic and thus, ripe for upgrades and customization. I feel like much of what I've been learning from Ryan Bates' Railscasts can easily be applied to fleshing out this blog application.
Long story short, it seems like a great place to continue my learning.
That said, it does certainly have it's shortcomings. First and foremost, it does not follow Test-Driven Development. I did not take the initiative to implement testing on my own, but it is simple enough to retro-fit testing into it after completion.
Second, the syntax is slightly outdated, and still leverages the now deprecated "hash rocket" which I reference in my last post. By now, however, I am (and you should be, too!) far enough along in your learning to translate this into the new format.
Third, and finally, Rails Guides does not leverage version control though Git, Subversion, or anything else. This isn't that big of a deal in and of itself, as the app is basic, and when you're done, you can just refer back to the Rails Tutorial chapter on Git to get up and running.