Displaying 19 results from an estimated 19 matches for "myactions".
Did you mean:
myaction
2006 Apr 19
9
Initial load time when periodically_call_remote
When I do periodically_call_remote with e.g. :frequency => 30
after initial 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'')
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
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)
Hi everyone. : )
I meet problem when 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 =>
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?
I''m having problems with what seems to be lazy loading behavior in Ruby
on Rails. I have two objects in a parent-child relationship such as:
class Order < ActiveRecord::Base
has_many :items, :dependent => true
end
class Item < ActiveRecord::Base
belongs_to :order
end
I put an instance of the Order object into the session using:
session[:order] = Order.new
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(<
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
2007 Mar 31
1
Subdomains, Routing, and Subdirectory Controllers
For reference, this question is similar to "Subdomains, Session Data,
& Routing" posted Oct. 31, 2006. Link:
http://groups.google.com/group/rubyonrails-talk/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
2006 Aug 07
1
Routing/Redirecting
Hi all,
Can someone tell 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
2014 Jun 13
1
Need to spoof the callerid using the AMI Originate
We have several customers we need to place outbound calls for (in a single system). May have to place calls for thousands of different caller ids. Customer signs a contract guaranteeing the caller id they provide is owned by them.
I have everything setup for AMI Originate and can place the calls.
However, I'm encountering a problem with the caller id.
The system I'm dialing through
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
2006 May 23
0
html "class" attribute for "link_to_remote"
Hi,
now this should be easy, but for some reason I was not able to generate
a link with a "class" attribute using "link_to_remote".
I tried several different ways, including the one that worked for
"link_to", but so far no luck.
I have to admit that I am not 100% sure how to read the rDoc
documentation. If it says:
link_to_remote(name, options = {},
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