Yes! I was actually looking for a form creator like this yesterday... Can't wait for next week. =)
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 ^^
A coffee and your cast that I'm calling a good Monday. ;) Thanks
hehe same for me, coffee+railscast=good start of the week
thx ryan :)
I've been using formtastic for a while now and it's really awesome!
Thanks for this screencast, Ryan!
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
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.
Ryan, as usual, you are making our mondays very much interesting! thanks for another great cast!
Thanks
Luciano
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.
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.
For another approach to forms, check out my Informant gem:
http://github.com/alexreisner/informant
Thanks Ryan!
@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.
Neato! You could use category:references when generating the animal model, which would add the belongs_to call automatically.
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 :)
Awsome! Thanks! I will use that in my app right now! Again: thanks!
Nice episode on forms. Thanks Ryan! thanks Justin for this plugin. It's really handy
Thank you!!! I've been hoping to see this one. Great job! Keep up the awesome work
Ryan,
I hang out monday afternoons (aus time) waiting for your rails casts and it is never a dissapointment... awesome work on this one... i can't wait to use it for our projects.
If not covered in part two, maybe a part three covering the usage of Searchlogic and Formtastic in tandem?
Thanks for the work.
Cute but perhaps a bit gratuitous. I prefer to use form builders wrapped in a helper method. Cheers.
I know it is not good to ask this question here, but I can't stop myself from doing this coz I need this function immediately.
Does anyone know how to send formatted output to printer using Ruby?
Or
Is there a way to send a formatted pdf document to a printer using Ruby?
I need suggestions. Please help.
Ryan Bates rocks....
Shreyans,
Post your question on www.stackoverflow.com. You'll probably get an answer more quickly than here :)
I was thinking about something very much like this last night. The difference is that I was thinking of something that would loop through all existing models in a project and generate the forms. This looks great on its own, but also looks like a fantastic starting point for a generate-new-forms plugin!
Great comparison between traditional scaffold and formtastic.
I would like to see how validation works in formtastic.
Hey Ryan,
Great job as usual. Please make sure to cover Formtastic in at least 3 or 4 episodes. It is that good.
Nice cast!
@nick:
Validation error messages is attached to the fields instead all in one huge block, and you can render general form errors using errors[:base] - pure Rails.
FYI: I'm a heavy Formtastic user and created a gem that handles client-side (and fallback on AJAX when client-side not possible) validations of forms by extracting needed validation info from your models. Formtastic markup in mind, so it's compatible out of the box. Actually compatible with any markup if you want. Check it out:
http://github.com/grimen/validatious-on-rails
Unobtrusive and JS framework agnostic. =)
I just tried out the formtastic textmate bundle, and notice that the ftgem snippet still generates a source option for the gem as github.
I sent a message to the author of the bundle via git about that. If there's time, you might want to mention this in the next railscast.
Also I just reported lots of spam comments on this episode. I don't think most readers would really be interested in ugg shoes, rolex watches or tiffany stuff, fake or not <G>
How to apply the same admin side, Unable to do nifty scaffolding on admin side. ruby script/generate nifty_scaffold 'admin/authors'???
After install in a fresh rails structure and then running
gem sources -a http://gemcutter.org/
and then
gem install formtastic
I get this error after editing my form:
undefined method `semantic_form_for' for #<ActionView::Base:0x64bf054>
The formtastic.css shows up ok and I modified the layout to include this. I've tried it with standard and nifty scaffolds. Any ideas for the error? I'm thinking it is something with the gem and my configuration. But I'm new to rails and clueless.
I think a minor correction in the code snippets is needed.
The comment for the first form should be:
<!-- views/categories/_form.html.erb -->
It is showing as views/animals/... for both form snippets.
Same as Dave
After installing formtastic and altering forms:
undefined method `semantic_form_for' for #<ActionView::Base:0x64bf054>
Ryan
Looks like you've had a herd of trained monkeys who've managed to post nearly 50 link spam comments to your site. Must be human to get through the Captcha.
Hi,
Can you help me with this error :
uninitialized constant Formtastic::SemanticFormBuilder::I18n
Extracted source (around line #6):
3: <%= error_messages_for :task %>
4:
5: <% semantic_form_for(@task) do |f| %>
6: <%=f.inputs %>
7: <%=f.buttons %>
8: <% end %>
9:
Don't use justinfrench-formtastic, that's too old. Use formtastic from gemcutter.
Good sharing. I like your post. Thanks for share your thoughts.
Wholesale and retail are both acceptable to us. Welcome to our site and free to look! Thank you and wish you a
nice day. Good Luck!
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
Just wanted to say: thanks for all the superb tutorials! Keep up the good work!
I have a question-
If the user hits "Enter" while typing in a text field, and after the submit, and when I display it, it doesn't start a new line. I know it is like this with all forms, how do i fix it? Thanks
Wow, just created a complex form. Thanks for the guide!
oh ,yes .Amazing stuff,Thanks so much for this!This is very useful post for me. This will absolutely going to help me in my projects .
www.nflvikingsjerseys.com
I saw on the news that the money they dumped at Shire was fake, to represent the money he had raised. It wasn't the actual money.www.nflvikingsjerseys.com
This is a good,common sense article.Very helpful to one who is just finding the resouces about this part.It will certainly help educate me.
Thanks for this great post, i like this article very informative.
Thanks for this great post. I have become a huge fan of this website and I really cant wait to read you next posts! Your post are inspirational.
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 :)
Wow, just created a complex form. Thanks for the guide! Thanks for this great post. I have become a huge fan of this website and I really cant wait to read you next posts!
These are wonderful! Thank you for finding and sharing
Some times, to a certain need, we have to convert PDF to image for enjoyment.
Discount Wholesale Electronics, Wholesale Cell Phones, Electronic Gadgets and More from the Best Dropship Wholesaler
Italian Restaurant (June 19, 1978) and immediately ate all the pasta and lasagna in sight ^^
Thanks for sharing your article. I really enjoyed it. I put a link to my site to here so other people can read it. My readers have about the same interets
For another approach to forms, check out my Informant gem:
http://github.com/alexreisner/informant
I think this is a great post. One thing that I find the most helpful is number five. Sometimes when I write, I just let the flow of the words and information come out so much that I loose the purpose. It’s only after editing when I realize what I’ve done. There’s defiantly a lot of great tips here I’m going to try to be more aware of.






