Displaying 3 results from an estimated 3 matches for "member_controller".
2006 Feb 04
22
What''s the best way to embed a form?
I would like to embed my login form on my app''s home page. What''s the best way to render the login action of member controller from another action?
Thanks
Frank
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 10
0
Re-Posting a Form
...e who wants me to host a data collection
form that posts to their server. However, I want to do validation and
if all works properly, then issue an http post to their server with
the proper request variables set as though the form had just been
filled out.
So far, it''s kind of like this:
member_controller
index : shows form
signup : the ''show'' method. if all is well, should form the request
vars and post to remote server, else render index
Is there a best practice for stuffing a request and posting to some
arbitrary URL?
Thanks
2005 Dec 16
13
How to pass a collection to paginate?
There must be a better way to write this code:
@project_pages, @projects= paginate :project,
:per_page => 10,
:conditions => ["account_id = ?", account]
?!
If only I could pass the sub-collection
account = ...
@projects = account.project
to paginate, instead of letting it extract it with a find :all + sql
conditions
Alain.
--
Posted via