similar to: Subdomains, Routing, and Subdirectory Controllers

Displaying 20 results from an estimated 900 matches similar to: "Subdomains, Routing, and Subdirectory Controllers"

2006 Aug 03
0
Sharing sessions across subdomains
Has anyone else experienced this strange behavoir with sharing sessions across subdomains? I have in development.rb ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:session_domain => ''.localhost.com'') If I create a session at foo.localhost.com then go bar.localhost.com a session is created (with host localhost.com) and everything works fine. But if I then go
2006 May 18
4
Request Routing Plugin ( :requirements => { :subdomain => ''thing'' } finally works)
Hi All, Just a quick note to say that I''ve released an intial version of the request routing plugin which essentially allows you to use various request object properties as requirements in routes. Most notably you can do: map.connect "thing", :controller => ''main'', :requirements => { :subdomain => ''whatever'' } ..just like the wiki
2006 Feb 08
1
render_component vs. render_component_as_string?
I''m calling render_component in a helper. render_component :controller => target_controller, :action => "show", :id => target_id This works fine, except that passing the id in :params didn''t work and I had to pass in an explicit :id parameter to get the target controller to override the id - is that documented anywhere? That''s not my question. My
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
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
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 =>
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'')
2007 Jan 16
4
Subdomain Account Keys Best Practice
Hi all, I''m thinking of useing sub-domains as account keys, something I''ve played with previously. I have accounts and users, fairly standard, except that users can belong to many accounts, and accounts can have many users. So I figure I need to have an area on the main domain, that allows users to view their account memberships and things. Sort of like a dashboard for each
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
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
2006 Feb 06
1
Two subdomains with diferent controllers but same helpers and components
Hi, I want to have www.myproduct.com and myclient1.myproduct.com working on same server. I would like to have different controller in wich subdomains, example: on www I want to have sgnup and prices controller and on myclient subdomain I want login, settings, etc... I can open two environments rails www rails clients or point the two subdomains to same environment rails myproduct Wich is
2006 Mar 23
10
Domain Requirements in Routes (Edge Rails)
I saw on the bottom of the following page that you can route requests to different controllers based upon which subdomain is being requested. http://wiki.rubyonrails.com/rails/pages/Routes with_options :requirements=>{:subdomain=>''first.com''} do map.connect '''', :controller => "first/catalog" map.connect ''featured'',
2006 Apr 04
1
subdomain routing
According to the wiki (http://wiki.rubyonrails.org/rails/pages/Routes) you can handle subdomain routing in routes.rb. Like this: with_options :requirements=>{:subdomain=>''first.com''} do map.connect '''', :controller => "first/catalog" map.connect ''featured'', :controller => "first/catalog",
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
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(<
2007 Feb 07
3
Upgrade to Rails 1.2.2 : RESTful routes not working anymore
Hello, I just upgraded my app to Rails 1.2.2. My routes are : map.with_options :path_prefix => "/admin", :name_prefix => "admin_" do |m| m.resources :requests, :controller => "admin/requests", :collection => { :destroy => :delete, :search => :post } do |request| request.resources :histories, :path_prefix =>
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 = {},
2010 May 28
0
dynamically generating subdomains using subdomain-fu
hi, I am using subdomain-fu for creating subdomains . My doubt is how can we give the subdomains in the etc/hosts ,when the sub-domains are dynamicallybeing created. Ex: i created a subdomain called "user1" and i specified this in etc/ hosts file.So eveery time i cant specify the subdomain which is being created.So can i ovecome this problem. -- You received this message because
2006 May 08
0
testing named routes
Hello, I''m trying to test routes named within a map.with_options statement. I have in routes.rb: map.with_options :controller => ''films'' do |f| f.overviews ''films/:index'', :action => ''index'', :requirements => { :index => /index(artist|date|title)\.html/ }, :index => ''new'' etc... end and