RailsCasts Pro episodes are now free!

Learn more or hide this

Recent Comments

Avatar

Thank you!!! I've been hoping to see this one. Great job! Keep up the awesome work

Avatar

Nice episode on forms. Thanks Ryan! thanks Justin for this plugin. It's really handy

Avatar

Great episode like always! I was really impressed by how easy the customization is. And thanks for the laugh: "Cuddly, but Deadly", hehe, straight to the point :)

Avatar

Neato! You could use category:references when generating the animal model, which would add the belongs_to call automatically.

Avatar

@Justin, glad you like it! Keep up the great work with Formtastic.

@Joachim, you're right, the gemcutter source would be better. I actually recorded this episode a few weeks ago, and I'm not sure if that was available at the time.

Avatar

For another approach to forms, check out my Informant gem:

http://github.com/alexreisner/informant

Thanks Ryan!

Avatar

Great episode! Just a small remark: Wouldn't it better to use gemcutter.org as gem source? The newest version of Formtastic is v0.2.5 which is not (and never will be) available on gems.github.com.

Avatar

Very interesting! Makes our work even faster huh? Looking forward for part II.

Ryan, you could make a list of your favorite plugins/gems you use. What you think? We now have a lot of options to use with our Rails projects and is getting harder to make a choice. Thanks.

Avatar

Ryan, as usual, you are making our mondays very much interesting! thanks for another great cast!
Thanks
Luciano

Avatar

It requires XHTML? That's crazy! XHTML must be served as text/html to get acceptable browser support, and then it renders worse than HTML4.

Avatar

Ryan, I really don't think I could've asked for a better introduction to Formtastic. I watched it with a huge smile. Looking forward to part 2!

Thanks,
Justin

Avatar

Really great cast, thx again Ryan!

Avatar

I've been using formtastic for a while now and it's really awesome!

Thanks for this screencast, Ryan!

Avatar

@Samuel that's true. Again a great screencast!

Avatar

hehe same for me, coffee+railscast=good start of the week

thx ryan :)

Avatar

A coffee and your cast that I'm calling a good Monday. ;) Thanks

Avatar

Nice one, really handy and I am eager to hear and see more soon ^^

btw:
Garfield was born in the kitchen of Mama Leoni's Italian Restaurant (June 19, 1978) and immediately ate all the pasta and lasagna in sight ^^

Avatar

Yes! I was actually looking for a form creator like this yesterday... Can't wait for next week. =)

Avatar

Yay for mondays and railscasts! Love your work! Thanks alot!

Avatar

Does this even work with virtual attributes?

I keep getting an error "undefined method `age_greater_than' for #<Class:0x48fff80>" where age is a virtual attribute.

Anyone?

Avatar

Thanks for showing us how to handle this irritating error.

Avatar

Saikuro would be pronounce roughly like sigh-crow which is a Japanese approximation to cyclo

Avatar

To validate images content types in IE you need to add to your validation 'image/pjpeg' and 'image/x-png'

Avatar

I had problem as Korben Dallas had (A copy of ApplicationController has been removed from the module tree but is still active!).

Solution is unloadable as it is explained on http://strd6.com/?p=250.

In short, put 'unloadable' in your plugin controllers

Avatar

I'm fairly positive that this comment will get lost amidst all the spam, but I just want to mention that these two new plugins: jQuery BBQ and jQuery urlInternal supersede URL Utils. I've refined and simplified the hash / history API significantly, and separated the functionality into two logical, complimentary plugins:

jQuery BBQ:
http://benalman.com/projects/jquery-bbq-plugin/

jQuery urlInternal:
http://benalman.com/projects/jquery-urlinternal-plugin/

Check them out if you haven't already!

Avatar

Hi Ryan, I'm getting error when i run rake open_id_authentication:db:create. The error is :
undefined method `add_acts_as_authentic_module' for ActiveRecord::Base:Class
Anyone help me?

Avatar

Hola a todos estoy iniciando con el mundo ruby on rails y necesito hacer una aplicacion web con autentificacion y con base de datos prostgres alguien me podria guiar por favor es urgente gracias mi correo cyber_daemon_one@hotmail.com

Avatar

Great tutorial as always.

Avatar

Yeah, Jcrop is really nice. I recently used it to add user avatar cropping to one of our apps, but I set it up to work entirely from a single page. I didn't want an avatar change to lead the user away from the profile edit screen, so I used the responds_to_parent plugin to upload the image via ajax, and then immediately render the image for cropping. I'm pretty happy with how it turned out.

Avatar

Well done, Ryan ! I have a question. How would it be possible to use it with STI? For example, you process some Data objects among which you have Image, Music, Document objects as Data chidren. Every child can have its proper chidren (mp3, CCA for Music, Icons, Photos for Images, etc.). How can we create kind of Data object and precise its type in the moment of creation so that not to write a separate controler for every Data type? Thank you.

Avatar

Anyone knows if the Activemerchant works with RBSWorldpay ?

Avatar

Hi,

Thanks for this great episode ! Just a tip for those who are wondering : I wanted to be able to re-crop the image without uploading it again, but the problem was that ":large" style was already cropped. I didn't found a clear documentation on this, but you can apply processors or other properties to some styles only. For instance :

:styles => { :small => "100x100#", :large => "500x500>" },
:processors => [:cropper]

could become :

:styles => {
  :small => {:geometry => "100x100#", :processors => [:cropper]},
  :large => {:geometry => "500x500>"}
}

This way ":large" image isn't cropped, but ":small" is. Then you can define an action to recrop your image, keeping the same code in the view.

Avatar

How can I use Active Merchant to set Express Checkout's taxamt field? I need to set tax on orders shipping to my state.

Thanks!

Avatar

You have been such an inspiration to me over the last year and a half, and I really appreciate what you do for the rails community. Thanks for another valuable screencast!

Avatar

Yeap, I agree with #37. Stewie, filtering spam will be great.

Avatar

Hey Ryan, thanks again for all the awesome casts!

Have you considered adding a captcha to your comment form? I'm getting sick of reporting all these spammers!

Avatar

Big fan of what you are doing. As I noticed the spam you get here, maybe something like the URL I submitted as "Website URL" can help get rid of it?
Keep up the good work!

Avatar

Thanks for the screencast. I'm wondering if it's possible to move the engine out of the vendor/plugins directory and load it out of a path that is outside the primary app.

The reason is that I am running 4 different apps, that all run my engine. I only want to update my engine in one place, and have all 4 apps read it.

Is that possible?

Avatar

Keep up the excellent work you are doing.

Avatar

These are the things I would probably never realise without this show. thanks

Avatar

I am having trouble using stubs method. The method is being stubbed across tests and is breaking some of my tests. Any suggestions?

Avatar

Excellent and timely screencast. I didn't know that you could use Jeweler with GemCutter (or RubyForge, for that matter). Thanks again!

Avatar

I see jeweler as too much for what is actually needed. http://github.com/sr/mg is "just enough" in that regard.

Avatar

Ryan,

   Jeweler supports releasing to both Gemcutter and Rubyforge. The default is Github. See the options in the README

Avatar

Jeweler and Gemcutter are my favorite tools for gem development now, thanks for making a screencast on this =)

Avatar

Thanks for this Ryan