RailsCasts Pro episodes are now free!

Learn more or hide this

Recent Comments

Avatar

Ryan, in a few days, would you compile comments, because there is also "must seen" websites in all the comments ?

With your site selection, this will be one of the best Ruby development sites bookmark page (-;

Avatar

For a jQuery-based alternative that works on trees instead of flat lists, see http://blog.ronaldevers.nl/posts/6-rails-sortable-element-helper-with-jquery

Great stuff Ryan!

Avatar

Might be a bit late to post here, but I can't get this to work at all...
 
I followed step by step but get this error:

NoMethodError: undefined method `update_from_feed' for #<Class:0x103804fb8>

I don't really see where I am going wrong, as I have that method defined in the model ...

Thanks!

Avatar

Lets say i have the article model like in the example and i want that every user is only able to see his own articles and admins can see all articles. How would i do that with cancan ?

Avatar

I get an error when I try out the history code.

    Readline::HISTORY.entries.split("exit").last[0..-2]

which results in:

NoMethodError: private method `split' called for #<Array:0x1500554>

But it works if I do this:

    Readline::HISTORY.entries[0..-2].join("\n")

Avatar

As well as the ones you mentioned Ryan, I also found the following really great.

http://apidock.com <- You can save the search prefs to your Firefox search bar, which makes finding things very easy

http://lighthouseapp.com <- sometimes Githubs issue tracker doesn't cut it :-( A very nice alternative.

http://www.confreaks.com/ <- heaps of great vidoes, including recent ruby conf 2009.

http://rubypulse.com <- Discover new libs

http://ruby5.envylabs.com/ <- keep up to date with ruby news

http://doctype.tv/ <- html/css/js tips and tricks

Avatar

I prefer railsbrain.com for the API, but I do use railsapi.com for ruby stuff...

Avatar

@Emerson

http://github.com/ryanb/railscasts

Open-sourced and good-looking ;)

Avatar

I had installed git a while back, but hadn't done anything with it. However, after fussing with Subversion branching/merging - I had fresh initiative to use git. This screencast really demonstrates ease in which to setup a rails project under git.

Thanks Ryan, you are providing a valuable service with RailsCasts!

Avatar

Loving GitHub as well, seems like everything I use is housed there.

By far this is my favourite site though (and I'm assuming it's build on rails). Happy New Year, look forward to the screencasts of 2010.

Avatar

Just a note ...

If you're having problems getting a form to submit ... try using the click_button form method instead.

http://mechanize.rubyforge.org/mechanize/WWW/Mechanize/Form.html

Avatar

Hi,

In command prompt i executed:
c:\myproject>ruby script/plugin install git://github.com/freelancing-god/thinking-sphinx.git

It generates a blank "thinking-sphinx" folder inside the "vendor\plugins" folder.

what i should do....

Avatar

ruby script/plugin install svn://errtheblog.com/svn/plugins/will_paginate

not working

Avatar

I also like rubypulse.com for it's screencasts on Ruby related topics.

Avatar

I feel you have missed my all time favourite Heroku www.heroku.com

Avatar

Can I make the password field optional?

Avatar

FYI, as of cucumber-0.4.2 you'll need to use cucumber-rails otherwise the generators wont work.

sudo gem install cucumber-rails
config.gem "cucumber-rails"

Avatar

Not quite rails specific but I've been loving http://rubular.com for playing with ruby regexes, has really helped with some tricky validations on a recent rails app.

Avatar

I love http://railsapi.com. I run it locally at http://rdoc.local which makes looking up Ruby or Rails stuff super fast and convenient when I don't have internet.

Avatar

Also a note on CSS styling.

You can override the inline css styling if you want more control over the popup form by adding :skip_style => true

<%= text_field_with_auto_complete :product, :category_name, {:size => 30}, {:skip_style => true, :url => formatted_categories_path(:js), :method => :get, :param_name => 'search' } %>

/* Autocomplete Popup Styling, Notice I changed the color of li.selected to red? */
div.auto_complete {
width: 350px;
background: #fff;
}

div.auto_complete ul {
border:1px solid #888;
margin:0;
padding:0;
width:100%;
list-style-type:none;
}

div.auto_complete ul li {
margin:0;
padding:3px;
}

div.auto_complete ul li.selected {
background-color: #990404;
}

div.auto_complete ul strong.highlight {
color: #800;
margin:0;
padding:0;
}

Avatar

Hi there, thought I might try to contribute something.

I followed this screencast and then tried to upload my project to my heroku (these guys rock!!) hosting which uses postsql databases. I found that the search was only return case sensitive results instead of case insensitive results, so I dug into it and on PostSQL you can just replace the LIKE with ILIKE in your controllers query for the same results.

Avatar

As other have mentioned, apidock.com.

Avatar

I am biased, but I love http://www.TeachMeToCode.com (screencasts on demand). Learnivore.com is also an excellent site and will soon have a full iPhone interface as well. And of course, my all-time favorite website is http://RailsCasts.com!

Avatar

I get undefined method `can?' for #<ActionView::Base:0x56ab314> in the my contoller. What's wrong?

Avatar

Not rails related, but if you need to find a domain, bustaname.com is super useful.

Avatar

huge fan of railscasts.com, ever herd of it? :)

apidock.com, newrelic.com

Avatar

How could I combine this (would I combine this) with the "add a friend" functionality you described? I want a user to be able to invite someone via email and that invited person when joining is now a friend.

Avatar

I really enjoy using Heroku for hosting of my rails apps. There are many solutions for rails hosting on the web, but I find Heroku's zero-configuration, Git-centric workflow to be the missing link in my applications' life cycles.

There are some limitations to Heroku such as a read only file system and they only support PostgreSQL, but thanks to the nature of cloud computing, many of these minor roadblocks can be overcome.

Heroku is at http://www.heroku.com

They have free hosting for smaller applications and a dynamically scaling architecture for larger apps, so the theory is that you pay for only what resources you need.

Avatar

Well done, i like it. Nice to get used to what mechanize is, and how to use it!

Thanks a lot!

Avatar

Hi Ryan, thanks for this cast. I think you missed a site I saw you mentioning in other casts which is:

railstips.org

Avatar

The gemspecs files might be more useful than just some data for creating gems. Check for examples these http://github.com/botanicus/nake/blob/master/nake.gemspec & http://github.com/botanicus/nake/blob/master/nake.pre.gemspec

As you can see these files are executable and I'm using them for releasing gem & the prerelease gem. I just do ./nake.gemspec resp. ./nake.pre.gemspec and that's it, I get the gem. Unfortunatelly bundler can't handle more gemspecs in one directory, so if someone use git: path/to/your/repo, it won't work, I already created a ticket for it ...

In my opinion you should write gemspecs rather than have some fucking rake tasks for it, because you can just build it and it works, but the rake tasks, you usually depend on some other gems etc. And mainly, when your tasks generate the list of files rather than put Dir.glob directly into the gemspec, then when you add/remove a new file, the gemspecs is old and if you have the gemspec in your Git repo, then if someone build it, he get broken gem which is really very, very bad practice. So please don't do it folks.

Avatar

I would also add www.opensourcerails.com, where developers upload thier new app. guides.rubyonrails.org a very good site for helping you understand everything you need to know about RoR.

Avatar

Nice episode Ryan... definitely will be checking a few of those out.

I am a massive fan of
apidock.com,
railsforum.com and good old
api.rubyonrails.org
They have all been very good to me and much help when stuck on what options i have with certain methods.

A nice site i like to watch every now and then is also railsenvy.com some of the topics they cover a quite interesting and very handy.

Cheers
Coops
AUS

Avatar

Thanks Ryan!
I've bookmarked some of your resources.
I also would add apidock.com where you can browse information on Ruby, Rails and Rspec as well.
I would also recommend rubyinside.com for interesting articles.

Avatar

Is it intentional (or my personal failing) that prevents me from being able to fast-forward and skip around your episodes when viewed in iTunes? The thumb is effectively disabled.

Avatar

Thank you! Once again you have saved my project from failure! I've learned 90% of my knowledge about rails from watching your screencasts. Please don't stop :)

Avatar

Getting "Plugin not found" when running "ruby script/plugin install http://newrelic.rubyforge.org/svn/newrelic_rpm", why is that? :S

Avatar

Instead I recommend starting a thread over at railsforum.com with a detailed explenation of your problem. I

Avatar

The usual reasons for "undefined method `semantic_form_for'" are:

* you haven't added the gem to your environment.rb
* you forgot to restart your server after addding the gem to the environment (or installing the plugin)
* you have config.plugins set in your environment to load plugins in a specific order, but it doesn't include formtastic

Avatar

If you run into "is not recognized by the 'identify' command"

delete imagemagick and reinstall via macports

sudo port install ImageMagick

Avatar

@Narcisse

I am having the save problem, have tried everything i know, but no luck

please help us!

Avatar

This is cool, but useful only if you need stuff like validation and callbacks. But you can get away without subclassing ActiveRecord::Base as well. Just define your own class or subclass OpenStruct, add validations with http://validatable.rubyforge.org/ and voila! This will work for most of the cases equally well.

Avatar

AccessControl all the way.

http://github.com/Adman65/AccessControl

moderator edit: Jul 13, 2011 [link]

Avatar

Ryan; Love your screencast on mongodb. I just wanted to add, for those users who use macports, there is a simpler way of installing mongodb and making sure it's up to date. Use the sudo port install mongodb command and you are all set to go with mongo!

Thanks Ryan, and Happy New Year!

Avatar

thanks Ryan.

by the way, which plugin do you use for the syntax highlighting??

Avatar

@Shreyans

You got for Mac OS X - http://www.apple.com/downloads/macosx/development_tools/mongohub.html

Dunno if it works though, aint running Mac. MongoHub doesnt seem to work properly in Win7

Avatar

How about if someone wants to visually change the data (I mean not from the console). Is that possible?