RailsCasts Pro episodes are now free!

Learn more or hide this

Cyle Hunter's Profile

GitHub User: nozpheratu

Comments by Cyle Hunter

Avatar

Are there any big advantages to upgrading to Rails 4 - I'm a little familiar with some of the new features that are offered and none of them sound appealing to me at the moment.

Avatar

What is the purpose of the :type column for the User model in the STI example? I don't see the point of this, a User record is never even instantiated?

Avatar

Great episode. For those of you who want access to the additional twitter bootstrap alert message types in addition to success and error try the following code:

Change

ruby
<div class="alert alert-<%= name == :notice ? "success" : "error" %>"> 

to

ruby
<div class="alert alert-<%=(name == :notice && 'success' or name == :warning && 'warning' or name == :info && 'info' or 'error')%>">
Avatar

There seems to be a syntax error in the ASCIIcast for the ajax search jQuery. Bardwin's coffee-script worked for me however.

Avatar

There should be a revised episode for this, or are there better options to use nowadays?