RailsCasts Pro episodes are now free!

Learn more or hide this

bparanj's Profile

GitHub User: bparanj

Site: www.rubyplus.org

Comments by

Avatar

This episode covering tagging from scratch has been upgraded to Rails 5. Checkout Tagging from Scratch in Rails 5

Avatar

This article has been updated to Rails 5 as a blog post Using Ajax and jQuery in Rails 5 Apps

Avatar

This episode has been updated to Rails 5 as a blog post Supporting Guest Users in Rails 5 App

Avatar

In Rails 4.x, you can use has_secure_password to simplify the implementation. Checkout these articles, Authentication from Scratch : Register Feature and Login and Logout

Avatar

This episode is updated for Rails 5 as a blog post Model Name in URL

Avatar

To learn how to implement autocomplete using Twitter typeahead javascript, elasticsearch with searchkick in Rails 5, check out Autocomplete using Typeahead and Searchkick in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post Fragment Caching in Rails 5

Avatar

The code for this episode has been updated to Rails 5, you can download it from virta

Avatar

The code for this episode has been updated to Rails 5, download the code form emu

Avatar

This episode code is upgraded to Rails 5, check out the source code fb5

Avatar

The source code for this episode has been updated to Rails 4.2.6. You can download it from cms4

Avatar

This episode has been updated to Rails 5 as a blog post Factories in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post PDFs with Prawn in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post Rails 5 ActiveRecord and Partials

Avatar

To get this working in Rails 5, I had to turn off Turbolinks. Checkout the source code on how to get this working in Rails 5.

Avatar

You were very close to get it working. The cause of this failure is strong parameters. You have to do:

ruby
params.require(:your_model).permit!

You can also specify which fields you want to allow by doing:

ruby
permit(:field1, :field2)
Avatar

This episode has been updated to Rails 5 as a blog post Rails 5 Extras

Avatar

This episode code is upgraded to work with Rails 5. Checkout the code with hash 3621d71c558ac16aa0b8e56abcdba1b88ffcb562

Avatar

This episode has been updated to work with Rails 5 Paypal Basics

Avatar

This episode has been updated to Rails 5 as a blog post Thinking Sphinx in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post File Uploads using Paperclip in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post Going Back in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post Helpers Outside Views in Rails 5

Avatar

The above link is wrong. Here is the correct link Tableless Model in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post Tableless Model in Rails 5

Avatar

This episode is updated to Rails 5 as a blog post Liquid Template in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post Semi Static Pages in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post Endless Page in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post Advanced Search Form in Rails 5

Avatar

You would provide different data set to test different search possibilities. For instance, provide keywords and check if it returns the expected products.

Avatar

This will also work.

ruby
def category_name=(name)
  self.category = Category.find_or_create_by(name: name) if name.present?
end
Avatar

This episode has been updated to Rails 5 as a blog post Dynamic Select Menus in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post Complex Forms in Rails 5.

Avatar

This episode has been updated to Rails 5 as a blog post Complex Forms in Rails 5.

Avatar

This episode has been updated to Rails 5 as a blog post Complex Forms in Rails 5.

Avatar

This episode has been updated to Rails 5 as a blog post Custom View Helpers in Rails 5

Avatar

This episode is updated for Rails 5 as a blog post Model Name in URL

Avatar

This episode has been updated for Rails 5 as a blog post. Handling Exceptions in Rails 5

Avatar

Testing would make sense if you had business logic. It does not make much sense for generating files.

Avatar

This episode has been updated for Rails 5 as a blog post. Update Through Checkboxes in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Will Paginate in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Console Tricks in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Catch All Route in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Blocks in View

Avatar

This episode has been updated for Rails 5 as a blog post. Customize Field Error in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Multi Button Form in Rails 5

Avatar

This has been updated to Rails 5 as a blog post. Simple Search Form in Rails 5

Avatar

This has been updated to Rails 5 as a blog post. Custom REST Actions in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Named Routes in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Date Validation Gems in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Time in Text Field in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Customizing Time Format in Rails 5 Apps

Avatar

This episode has been updated for Rails 5 as a blog post. Pretty Page Title in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Group By Month in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. In Groups Of in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Mass Assignment in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Cross Site Scripting in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. SQL Injection in Rails 5 Apps

Avatar

This episode has been updated for Rails 5 as a blog post. Using Rails Foonotes in Rails 5 Apps

Avatar

This episode has been updated for Rails 5 as a blog post. Counter Cache Column in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Eager Loading in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Looping Through Flash in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Virtual Attributes in Rails 5

Avatar

This episode has been updated for Rails 5 as a blog post. Model Tests in Rails 5

Avatar

This episode has been updated to Rails 5 as a blog post Layouts in Rails 5

Avatar

This episode has been updated to Rails 4.2 as an article Find Through Association.

Avatar

The second episode of Railscast is now updated for Rails 4.2.5 as a blog post. Check out the Active Record Basics

Avatar

In Rails 4.2.5, you don't need to do it. You can see the details here Caching Database Results in Rails 4.2.5

Avatar

If you need to upgrade your Rails apps to 4.2.4, you need to know how to use the activeresource gem that is now outside the Rails framework. In https://rubyplus.com/articles/2691 ActiveResource Basics using Rails 4.2.4 article, I cover the basics of getting a simple book application to talk to an inventory application using activeresource gem.

Avatar

Code is upgraded to Rails 4.2.4 and latest draper version : https://github.com/bparanj/draper

Avatar

I have upgraded this episode to use Ruby 2.2.2, Rails 4.2.3 and ActiveMerchant 1.52.0. Here is the source code : Paypal Express

Avatar

I have written an article on integration testing using Capybara and RSpec, check out:Stripe Recurring Billing Part 3

Avatar

Mocking a third party API is a very bad practice. However you can replace the mock with stub and raise the exception.

Avatar

If you only run a single server, you have to use a third-party service to monitor your server. Because if your server goes down, Monit will go down with it.

Here is an excellent article on monitoring : Monitoring and Maintaining Your Server

Avatar

Thank you. I was able to get it working with Rails 4.

Avatar

I was able to get it working by following your blog post. I simplified the code a bit:
Syntax Highlighting using Rouge in Rails 4 Check it out:

Avatar

How to syntax highlight the code? I see class='ruby' in the view code. Where is the CSS?

Avatar

Simple direct File Upload to Amazon S3 using Javascript, jQuery, Amazon S3 CORS support, Simple Form with progress bar. Designed by me in Silicon Valley and developed by Denny: https://github.com/dennybritz or https://github.com/bparanj/s3-cors-upload-rails. Enjoy.

Avatar

I developed a wizard using Angular JS. It is extremely simple and requires less code. It allows users to go back and change previous values. It's on github: https://github.com/bparanj/angular-wizard

Avatar

x-tmpl is a dead project. This episode would have been better without using that template language. I would rather use jQuery file upload plugin with HTML5 and CarrierWave to implement the multiple file uploads with progress bar.

Avatar

This is difficult to grasp when we don't know the big picture. Diagrams are required to introduce the concepts before jumping into code. Also including specs with the code would be helpful.