RailsCasts Pro episodes are now free!

Learn more or hide this

Recent Comments

Avatar

Very interesting episode, thank you for it. The community seems a bit old but hey - there are still many interesting things to be found here.

Avatar

Does anybody have a java script implementation of this?

Avatar

Does anybody have a java script implementation of this?

Avatar

here is amazing things which you will sure like

Avatar

Excellent article, read in one breath! Thank you!

Avatar

Very useful information! Thank you very much!

Avatar

I agree with you. This post is truly inspiring. I like your post and everything you share with us is current and very informative, I want to bookmark the page so I can return here from you that you have done a fantastic job.
packers-and-movers-gurgaon.in

Avatar

It's 2017 and the content of these videos are still relevant. Thank you, Ryan!

Avatar

Thanks for this information.

Avatar

C'est très sympathique de donner cet espace où je peux parler de mon site Internet dédié à la maternité et à différentes thématiques féminines, surtout en rapport avec les mamans et leur enfant.

Si vous êtes une maman souhaitant participer rendez-vous sur mon site

Avatar

I'm also having the same issue. I think I have troubles with the callback URL, the new menu for Apps in Facebook is not simple and direct as the old one, so I can't find where to write the address down.

Avatar

Mantap Jiwa. Thanks for this information.

Avatar

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work.

Avatar

thnks full for this article

Avatar

You now don't need to get jewel, if you have an web connection, then you can get an unlimited amount of gems, and can hack other Clash of Clans features. It did not take enough time, and the results will be immediately noticeable on the system or your Android or iOS devices.

Avatar

today I learn from your site, very interested :D

Avatar

Ovary Nutrition Capsule adalah Produk Persembahan Green World Group sebagai sebuah group perusahaan internasional, dalam proses perkembangan yang terus berkelanjutan, senantiasa tidak lepas dari dukungan dan perhatian kolega dari berbagai kalangan. Selama ini Green World Group selalu mengikuti prinsip “kesehatan umat manusia sebagai dasar.

Avatar

I see a lot of interesting posts on your blog. You have to spend a lot of time writing, i know how to save you a lot of time,

Avatar

Is there a convenient way to separate view and controller logic depending on the environment?

Avatar

Thanks Ryan!! I appreciate your clear mindedness that you demonstrate in your screencasts.

Avatar

Ryan, thank you for this episode. I would like to use CoffeeScript in Rails 3.0.7 app. How caan I use it?

Avatar

I needed to do the same thing: transform a field in a JSON blob that was sent with an HTTP POST to a Rails 3 app. In my case I just wanted to include a hashed digest of a field, so in config/application.rb:

config.filter_parameters += [:password, lambda {|key, value|
if key.to_s == 'my_key'
value.replace(calculate_my_hash(value))
end
}]

Avatar

The users controller stores the user object in the session.

class UsersController < ApplicationController
def index
session[:user] = User.first

redirect_to session[:user]

end

def show
@user = session[:user]
end

def update
@user = session[:user]
@user.first_name = 'Junk'

redirect_to session[:user]

end
end

Avatar

Thank you for this Railscast. Your work is slowly helping me understand the more interesting side of rails.

Avatar

The documentation says that the :find keywords “may include the :conditions, :joins, :include, :offset, :limit, and :readonly options”.

Avatar

Thanks guys, found a lot of useful information!

Avatar

Great article post, I really interesting the way you highlighted some important points. Thanks very much, I appreciate your post.

Avatar

This is very interesting . you can learn Course Training of Digital Marketing Training at Digital Marketing Training institute by Google Adwords PPC management Company and also avail Google Adwords PPC Service or call at Customer Service Phone Number

Avatar

I didn't realize I was still considered a new user...

Avatar

This tool has sped up my programs so much faster than I ever thought it would. Just spent the last hour working on this page - and I'm so surprised how quick it felt.

Avatar

on my first visit i really got surprised while stumbling upon these categories of blog.

Avatar

I was having problems with scope_out.

Avatar

You can also store the model in memcached using cache_fu. (no DB hit)

Class User
acts_as_cached
after_save expire_cache
end

User.get_cache(id)
User.reset_cache(id)