search for: myaction

Displaying 19 results from an estimated 19 matches for "myaction".

Did you mean: my_action
2006 Apr 19
9
Initial load time when periodically_call_remote
...l page load I have to wait 30 seconds until this partial renders first time. Does anybody know how to make ROR to render partial on web page load, and then start periodic calls every 30 seconds? I tried to put <div id=''mydiv''><%= render(:partial, :action=>''myaction'') %></div> <% periodically_call_remote(:update=>''mydiv'', :url=>{:action=>''myaction''}, frequency=>30) %> but it does not work somehow... Please help! -- Posted via http://www.ruby-forum.com/.
2006 Jul 18
4
Multiple Layouts - Single Controller
How do I do multiple layouts for a single controller: I am aware I can do... render(:layout =>''mylayout'') for individual actions, however this becomes a multiple render problem. I tried this... layout "mylayout", :except => [:myaction, :myotheraction] layout "myotherlayout", :only => [:myaction, :myotheraction] However that doesn''t work, I just get blank layouts for :myaction and :myotheraction Suggestions? ~Jamie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrat...
2006 Apr 15
2
Using a Button to render partial
Is there a way to render a partial using a button? Basically in a content div I want the user to launch a new sub content item in the same div by clicking a button. Any help appreciated. Loving rails more and more everyday. -- Posted via http://www.ruby-forum.com/.
2005 Mar 02
2
form action in mail (actionmailer)
...use form tag in actionmailer. (content-type is text/html, surely) I want to use form action in actionmailer''s view (.rhtml) for some reason. 1. I use start_form_tag helper method as normally, but how I can ? I did <%= start_form_tag :action => "http://myhostname/mycontroller/myaction" %> or <%= start_form_tag :action => "myaction", :action_prefix => "http://myhostname/mycontroller" %> but met same errors /gems/actionpack-1.3.1/lib/action_view/helpers/url_helper.rb:11:in `send'' /gems/actionpack-1.3.1/lib/action_view/hel...
2007 Sep 28
1
evalJSON problem
Hey there, I have a FCKeditor(a WYSIWYG online html editor) and i want to bring it to a page by Ajax and JSON by a php request-catcher. I have sth like this in my ajax request: new Ajax.Request(''myactions.php'', { method:''get'', parameters: {action:''bringeditor'', id:<?php echo $uid; ?>}, onSuccess: function(transport){ var response = transport.responseText; var data = response.evalJSON(); $(''maincontent...
2005 Dec 21
3
Lazy Loading?
...d class Item < ActiveRecord::Base belongs_to :order end I put an instance of the Order object into the session using: session[:order] = Order.new I then extract the object in the controller and set it equal to the instance variable @order so that it is accessible in my view. def myaction @order = session[:order] end Now, my problem is that, in the view, the items array in @order is nil UNLESS I access the items array in the controller, e.g., def myaction @order = session[:order] logger.debug(@order.items) end This seems to me that Rails is loading the items ar...
2008 Jun 17
4
Formating Date Field
First.jsp ------------------ <jsp:usebean id="db" class="db.dbClass" scope=session/> <html> <body> <form action="MyAction.jsp" method="post"> <% ResultSet rs=db.executeQuery("select no,name from mytable"); while(rs.next()) {%> <input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(< %=rs.getString(1)%>) > <%} %> <input type=text name=displaydatetxt i...
2006 Jun 15
1
Periodically Call Remote Condition
Hi guys, I''ve been reading through the forums and came across a response for adding :with condition to a periodically call remote. I tried it out and couldn''t make it work. Would anyone have a sample of how to use this conditional structure with periodically call remote? If not, does anyone have any idea how to add a condition to a periodically call remote? What I need is to
2006 May 11
3
How do i open link to a new winow?
Pretty simple question right? can''t seem to figure it out. -- Posted via http://www.ruby-forum.com/.
2006 May 24
0
how to add a "pseudo" folder before the controllers/action/id
Hi, I''m trying to add a pseudo folder before the controllers, the website is working perfectly on http://w3.mysite.com/mycontroller/myaction, but I try to insere an actifical folder before the controllers like: http://w3.mysite.com/notrealfolder/mycontroller/myaction. Actually, rails considere the "notrealfolder" as a controller... does any one know how should I do to redirect (or something else) the requests??? Thanks you ve...
2007 Mar 31
1
Subdomains, Routing, and Subdirectory Controllers
...alk/browse_thread/thread/d3c5072c3588a1e0/f87d0fdfded31650 ---- I would like to set up a subdomain and, using the request_routing plugin, have requests to that subdomain call corresponding "sub- controllers" inside a controller module. That way, urls like: http://sub.example.com/target/myaction could be routed to call: Grouped::TargetController#myaction (located in /app/controllers/ grouped/target_controller.rb) I realize one solution would be to use "Option #2" in the referenced post above and create an action dedicated to parsing the url and redirecting to the appropriate...
2006 Aug 07
1
Routing/Redirecting
...ll me how I could redirect from an url like "www.url.com/mycontroller" to "www.url.com/en/mycontroller"? I was reading all sorts of routing documentation but couldn''t come up with a solution. Of course this should be a general rule, so "www.url.com/mycontroller/myaction/myparam=99" should naturally redirct to "www.url.com/en/mycontroller/myaction/myparam=99" and so on. Thanks for any help. Greetings Patrick -- Posted via http://www.ruby-forum.com/.
2014 Jun 13
1
Need to spoof the callerid using the AMI Originate
...dditionally, is it possible to set the callerid number value to a PSTN number instead of a SIP number at domain? I tried setting the callerid(num) via the variable field, but that doesn't seem to work. Below is a sample of the AMI Originate message I'm sending. Action: Originate ActionID: MyAction Channel: SIP/xxx.xxx.xxx.xxx/1234567890 Exten: testing Context: MyContext Priority: 1 Timeout: 30000 CallerID: Jane Doe <123> Variable: CALLERID(num)=2223334444 Async: true Have a great day! Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists...
2006 Mar 14
5
Controller Naming Question
Is it possible to have controllers named the following? /admin /admin/user If not, is there some way to get it to work with routes? I want to have some actions at the url /admin/<action> and some at /admin/user/<action> (obviously in admin/user controller). Thanks!!!
2005 Dec 25
4
How to display a welcome page
Wow, I can''t believe that after a few weeks of playing around with Rails I got stuck on something that seems like it should be really simple. How do I display a default welcome page for visitors who are not logged in and send logged in users to the appropriate controller. I am using the login_engine and the user_engine. The two methods I have seen looking at sample code are to stick a
2006 Aug 13
2
Catching "keypress" event with observe_field
I''m desperately trying to update a div when a key is pressed in a text field. Eg. : <input type="text" id="field"> <div id="area"></div> <%= observe_field :field, :url => {:action => :myAction}, :update => :area, :with => "text_param", :on => ''keypress'' %> This does not seem to work, and I can''t understand why. Does someone have any clue on what I am doing wrong ? Thanks in advance -- Posted via http://www.ruby-forum.com/.
2006 May 23
0
html "class" attribute for "link_to_remote"
...t 100% sure how to read the rDoc documentation. If it says: link_to_remote(name, options = {}, html_options = {}), doesn''t that mean that the following should work? link_to_remote(''update'', {:update => ''mydiv'', :url => {:action => ''myaction''}}, {:class => ''myclass''}) Thanks for any help! Ingo Weiss -- Posted via http://www.ruby-forum.com/.
2006 Jan 23
4
an image that is a clickable link?
Hi, How do I make an image that is a clickable link the rails way? Is there a view helper for this? Thanks, Peter
2006 Jan 14
3
How to render from a different controller
My code is something like this. class FirstController < ApplicationController def foo #some processing render (:controller => ''second'', :action => ''index'') end end I tried using both render and redirect but it seems it''s not possible to send the control from within a controller to some other controller. Am I missing something