RailsCasts Pro episodes are now free!

Learn more or hide this

Recent Comments

Avatar

If you're going to keep previewing JavaScript frameworks can you please build a new app rather than do Raffler all over again.

Avatar

It's Amazing post really 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" Good Work Thanks for sharing.
And whenever you are in Dubai United Arab Emirates.
Don''t missed this tour of Evening Desert Safari

Avatar

I Found the best Discussion here very Helpfull and you are providing very Useful Stuff Here.

Avatar

can you please upload full source code I am also stuck at edit/update part. Thanks

Avatar

I had an issue with the content_tag escaping the json ?

so ended up using

<%= content_tag :div, "" , id: "Orders" , data: { orders: raw(@orders.to_json) } %>

Avatar

I am having trouble while uploading image. I have used carrierwave gem to upload image when the user goes to next step it gives following error if image is present

Encoding::UndefinedConversionError at /deals
"\xFF" from ASCII-8BIT to UTF-8

If there is no image the app does not gives error. any body help me tell how to avoid this error or how to avoid storing carrierwave gem in session and get it back on last step.thanks

Avatar

I like this post so much and I will share this post to my friends because all the details are in this post is brilliant.

Avatar

Good job and bunch of thanks for this valuable post.

Avatar

Thank you for sharing with us, its nice post, you done great job.

Avatar

Nice article pure informative and knowledgeable thank you for sharing it.

Avatar

Dear your article is very nice and attractive. Keep sharing and have a great time blogging.

Avatar

2:34 to 3:03. Those two sentences makes no sense to me whatsoever. I've listened to it 10 times, and I can't tell what that line does. Sometimes the "foobar" terminology is unhelpful.

"So, if we pass a model object to the fetch method it's going to automatically use the cache key for that object, and we can supply multiple keys in an array and they will be joined together. So let's say we have some kind of property we want to compute on that article, we can execute that in a block here and this block will be executed just once when it sets the key and the next time we trigger it it won't trigger the block because the key is already set unless we change the Article model and that will change the key value."

Here is the line Ryan is describing:

Rails.cache.fetch([article, "foo"]) { 123 }

which returns:

=> 123

then he types it in the console again, and the same thing happens. What does this line do again? And what does "123" do? And how do I know that it isn't triggered the second time?

How is any fetching done when nothing in the cache had been set yet? I am really missing something on this one.

Avatar

Awesome post. Thanks for sharing.

Avatar

Wonderfull JOB, this helps me well

Avatar

Hi, I am following this tutorial. I have followed all above steps.

Manual steps before configuring the pop3 server were running all fine. Like: chmod +x script/mailman_server and cat mailman_test.eml | script/mailman_server

But at the last step when I run script/mailman_server in the terminal, I got the error:
Users/nandini/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/pop.rb:552:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)

Avatar

Four years later - I would say, put them in a JSONB field and sort using PostgreSQL's native support for it.

Avatar

Adidas Ultra Boost Uncaged
NMD Runner
NMD Runner Men
NMD Runner Women
NMD X Ultra Boost
Tubular X Boost 350 Men
Yeezy Boost 350
Yeezy Boost 350 Men
Yeezy Boost 350 V2
Yeezy Boost 350 Women
Yeezy Boost 750

Avatar

Adidas Ultra Boost Uncaged
NMD Runner
NMD Runner Men
NMD Runner Women
NMD X Ultra Boost
Tubular X Boost 350 Men
Yeezy Boost 350
Yeezy Boost 350 Men
Yeezy Boost 350 V2
Yeezy Boost 350 Women
Yeezy Boost 750

Avatar

I create a comment when I like a post on a website or if I have something to contribute to the conversation. It's caused by the passion communicated in the post I browsed. And after this article