Join the social network of Tech Nerds, increase skill rank, get work, manage projects...

Passing parameters to rails partials

While rendering a partial if we want to send parameters to the partial we can do it like this: <%= render :partial => user_profile_list, :locals => { :user => @user } %> or <%= render :partial => "user_profile_list", :...


Helpers in rails framework are live example of modules of ruby. The methods which are defined in helpers are available to the templates(view) by default. These helpers are called template helpers. Some examples are 1)date_helper.rb has methods li...
Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: