Amit Solanki

Avatar

A Ruby On Rails Programmer from India

Passing an entire form with a HTML hyperlink

In one of my projects I came across a situation where I needed to submit a form with a link. By default, a form is submitted either using a submit_tag or button_to helpers in ruby on rails. In this case it had to be submitted through a link. For this, I searched and found a way to do it:

<%= link_to_remote 'Submit', :url => {:controller => 'c_name', :action => 'a_name', :id => 'some_id'}, :with => "Form.Element.serialize('form_id')" %>

Alternatively, you can also use the following helper:

<%= link_to_function 'Submit', remote_function(:url => {:controller => 'c_name', :action => 'a_name', :id=>'some_id'}, :method => :post, :with => "Form.serialize('form_id')") %>

The form can be passed using the optional paramter :with.

E-TextEditor | The power of TextMate on Windows

E is a new text editor for Windows, with powerful editing features and quite a few unique abilities. It makes manipulating text fast and easy. It comes with features such as :-

  • Personal Revision Control
  • Close integration with cygwin
  • Automated Snippets
  • Syntax highlighting themes (even for rhtml files)
  • Customized Keyboard shortcuts
  • Support for TextMate bundles

You can download full functional 30 day trial version of E-TextEditor from www.e-texteditor.com.

Books on Ruby on Rails for Beginners

Earlier there were few books on ruby on rails available in market but at present there are numerous books available in market. But I would suggest you to go with the books written by the gurus of the subject. Here are few of the books which I refer and would like you to review:

  • Agile Web Development with Rails, Pragmatic Programmers
  • Programming Ruby: A Pragmatic Programmer’s Guide, Pragmatic Programmers
  • Build Your Own Ruby on Rails Web Applications, SitePoint Pty. Ltd.

Other books which you can try are:

  • Beginning Ruby on Rails, Wrox Publications
  • Ruby Cookbook, O’Reilly
  • Beginning Ruby: From Novice to Professional, Apress
  • Ajax on Rails, O’Reilly
  • Rails Recipes, Pragmatic Programmers

For any queries on these books and other books on the topic, feel free to mail me.

Next,

Before you go

Going so soon? May these links be a guide to web enlightenment.