search for: m000178

Displaying 8 results from an estimated 8 matches for "m000178".

Did you mean: 1000178
2006 Mar 22
7
What is difference between render & redirect methods?
Hi, Thest are two methods:- 1) redirect_to :action => ''list'' 2) render :action => ''list'' what is difference between these two methods?????? Thanks. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 21
4
render :action => ''list''
does anybody know what the hell "render :action => ''list''" means??? is "render" a method? is :action a parameter? thanks a lot. -- Posted via http://www.ruby-forum.com/.
2006 Mar 24
6
login forms , redirect_to and ajax-scaffold problems
Hi, I have a standard type authentication technique direct from AWDWR, so there is a before_filter :authorize_employee, :except => :login in my employees_controller.rb the authorize_employee is in application.rb def authorize_employee unless session[:employee_id] flash[:notice] = "Please log in" # save the URL the user requested so we can hop
2006 Mar 11
1
actioncontroller sans view
just wondering if theres a more idiomatic way to avoid the `assert_existance_of_template_file'' error than passing an empty block to render :update (or hacking up the actionview::base class). ive tried various things like render :template => false/nil etc and havent seem to found a magic trick.. i realize most times a controller would want a view but various cases during
2006 Jan 02
2
Getting Index When Using render :partial
I''m using a web service to retrieve an array of results to a search and a render :partial to display those results to the user, while at the same time putting the results into the session. Is there a way for my _book.rhtml file to have access to the index of the result currently being displayed, like each_with_index makes available to its block? This would allow me to have the
2006 Jan 02
3
Re: Getting Index When Using render :partial (Benjamin Stiglitz)
...ails.org wrote: > Instead of using the :collection parameter to render, render your > partial from inside an each_with_index, and pass in the index as a > parameter to the partial using :locals. > > AC::Base#render: http://api.rubyonrails.com/classes/ActionController/ > Base.html#M000178 > > -Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060102/6ce4897c/attachment.html
2006 Feb 17
4
Best practice for showing errors AND updating list
Morning/Afternoon/Evening All, This is my first post to the ruby message board so if my request is better suited to another location just let me know, The problem I keep coming up against is with a listing of objects and updating that list via AJAX (for arguments we are talking about a list of users). As it stands I can currently submit a form, and update the list (using :update
2006 Jan 17
9
Setting layout template in .rhtml
I''ve a single controller - class ContentController < ApplicationController end in the app/views/content folder I have quite a few .rhtml files I need to be able to choose a different layout template to use in each of these .rhtml files. i''d like to be able to do something like (which doesn''t work..) <% layout ''layout1'' %> Any