search for: yourcontrol

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

Did you mean: outcontrol
2006 Jan 23
2
Routes question
Newbie here, I am trying to set up Routes so that it will look up a listing in my directory by sanitized phone number, like the following: www.domiain.com/5405551212 which will in turn list all the listings with that phone number (though they might be in the Db table with parenthesis and hyphens), if one listing, then make it a special render If anyone could help with my Routes code and my
2006 May 09
1
Session mgmt. bug - ActiveRecord & MemoryStore session store
...#39;index'') end public def test_action2 puts "Value is: #{session[:test_object].test_attr}" render(:action => ''index'') end View code in index.rhtml to invoke these actions: <%= link_to("Test action", :controller => ''yourcontroller'', :action => ''test_action'') %> <%= link_to("Test action 2", :controller => ''yourcontroller'', :action => ''test_action2'') %> You will get an exception like: undefined method `test_attr'' for #&...
2006 Feb 08
2
URL rewriting
Here is the scenario I am trying to achieve. Basically, I want to run the action "show" from my controller, without adding the "show/id". Standard: http://www.domain.com/controllerName/show/id I would like: http://www.domain.com/controllerName/randomstring (where randomstring is a field in my model/table, that is equivalent to a GUID -> and unique). I''m confused
2006 Jan 11
1
handling AR object in multistage forms
in a multi-stage form, what is the proper way for handling the passing of the object thru each step ? If i have a database called events, and my controller looks like step = @params[:step] || 1 if step == 1 @event = Event.new @event = @session[:event] if @session[:event] elsif step == 2 @event = Event.new @event = @params[:event] elsif step == 3 @event = Event.new @event =
2009 Jul 09
8
Only One Controller + Urgent
Hi Champs, Need Help .. :( Actually the thing is that i am having many controllers a, b, c and d.. But what i want it that only "a" should be displayed to the users .. b, c, d not .. Is there any way to do it .. ? Cheers .. -- Posted via http://www.ruby-forum.com/.
2006 Jul 07
5
Can a route require POST or GET? / REST problem with routing
Hi, A store front a customer wants to GET /product/5/show. But for the application this is really GET /cart_item/new/5 or even better /cart_item/new?cart_item[product_id]=5 When the customer clicks add_to_cart they POST /product/5/show so that the url doesn''t confuse the user when any validation errors occur. But for the applicaiton this should be POST
2010 Jan 25
9
skinny Controllers, fat models with REST?
Hi, I''m really new to rails, so i programmed some stuff and today i read some things about skinny Controllers, fat models. My Controllers are really fat now. So i''m asking myself how can i shrink my controllers and move the code to the models, especially in fact of REST e.g. in focus on error codes? code example: # POST /tasks # POST /tasks.xml def create @authorized
2006 Jan 24
14
A bad day with Action Mailer
Hi, I''ve setup Action Mailer today to email the contents of a form. Every seemes fine except when the email is sending. Here is the error I get on the production server: SocketError (getaddrinfo: Name or service not known): /usr/lib/ruby/1.8/net/protocol.rb:83:in `initialize'' /usr/lib/ruby/1.8/net/protocol.rb:83:in `new''