similar to: setting the right routes

Displaying 20 results from an estimated 30000 matches similar to: "setting the right routes"

2005 Dec 30
2
scgi apache routes help needed
I''m trying to get an application running in a sub directory of a site using apache and scgi. The application runs fine with webrick. I have a site. Let''s call it "mysite.org". There is a variety of content on that site. I would like to add a rails application to that site. Let''s call the application "myapp". So we will have urls of the form
2006 Jun 07
2
script/generate scaffold pluralizes class names
Hi everyone, I''m a rails & ruby nuby, and this is my first post to the list. Here''s my environment in case it helps diagnose my problem: Ruby version 1.8.4 (powerpc-darwin8.6.0) RubyGems version 0.8.11 Rails version 1.1.2 Active Record version 1.14.2 Action Pack version 1.12.1 Action Web Service version 1.1.2 Action Mailer version 1.2.1 Active Support version 1.3.1 I did
2006 Jan 08
9
URL/Site structure
Greetings, I''m fairly noob with rails and making my first DB driven site with it. I''m using the scaffold generator to develop the admin side of my site (admin_controller) I have three sections that I want to have the administrator edit, and I want to call these from the admin controller that has a layout with navigation to these three sections. When using the scaffold
2006 Jan 07
2
Functional tests with routes
Hi all, I''m trying to do a route test using assert_generates and running into a bit of trouble. The controller that I am testing is in a module - class Admin::AdminPortalController def index end end I want the user to jump to the AdminPortal/index action when they use http://myApp/admin, so I''ve put the following in routes.rb map.admin_portal
2006 Mar 21
2
Several ''app'' directories ?
Hello, I''m new to ROR and my first wonder is to understand how to organize my application "per module"... Imagine I want to build a web site including : - the web site by itself - a forum - a wiki - a shop I would like to avoid putting all the controllers, views and models in the same app directories, polluting the subdirs with prefixed files like wiki_*, shop_*, forum_* -
2006 Mar 02
2
SwitchTower: why symlink releases/under -> current?
Hi, I have a trouble with deploying my ordinary rails application(myapp). When I execute ''rake deploy'', [...] command finished * executing task symlink * executing "ls -x1 /var/www/myapp/releases" servers: ["app1.olalog.com"] [app1.olalog.com] executing command command finished * executing "ln -nfs /var/www/myapp/releases/under
2013 Jul 02
1
rpmbuild environment CentOS5 vs CentOS6
On CentOS5 I was used to create a simple spec file where at the end I'll declare files and directories I wan't to package: --< Snip >-- %files %dir /opt/myapp %dir /opt/myapp/bin %dir /opt/myapp/etc /opt/myapp/bin/exec01 /opt/myapp/etc/myapp.conf ---- I'll copy the file in /usr/src/redhat/SPECS and run "rpmbuild -bb myapp.spec". On CentOS6 rpm-build package no longer
2006 Jul 21
4
Using a controller to initiate a plugin?
Folks I am new so I apologize if I come off as a totaly tool. I am finding Rails to be an amazing framework to use and having fun with it. I have run into a frustrating snag however with PLUGINS. I have a plugin installed in: /myapp/vendor/plugins/ When I run: ruby script/server in /myapp/ my WEBrick starts normally and I can access IP:3000. I get the default rails index page. How do I
2009 Apr 30
1
odbcConnectAccess function
HI: Is it possible to use the RODBC package within MS Access. I have been using from R but was just wondering if it could be used along with R(D)COM. Something like this: Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim myApp As StatConnector Set myApp = New StatConnector myApp.GetErrorText myApp.Init "R" myApp.EvaluateNoReturn "library(RODBC)" myApp.EvaluateNoReturn
2007 May 07
3
Module Madness
I''m wanted to make a "global" module that I could include in my application for some shared code between them. I''ve been making several camping apps and wanted them all to share a helper/partial that contained the navigation. I ran into a lot of difficulty when trying to include it, the primary problem being "methodUndefined" errors. I did finally get it to
2006 Jan 17
3
file_column :root_path question.
I''m developing on Windows and deploying to FreeBSD+lighttpd using Switchtower and I''ve got things generally working. My problem now is that file_column data gets zapped every time I deploy, because Switchtower creates a whole new myapp/public directory with each rev. I looked through the file_column docs and found the :root_path option, which I use in my models as follows:
2008 Sep 23
5
Problem getting Rails to emit the correct (proxy) domain in route urls
Behind the scenes my app runs like this: http://myapp.mydomain.com/myapp and and https://myapp.mydomain.com/myapp are Apache 2.2 virtual hosts proxy-balanced to a mongrel cluster on the same machine. But I need to make these available here: https://www.mydomain.com/myapp and https://myapp.mydomain.com/myapp are on a second server using ProxyPass and ProxyPassReverse to
2006 Mar 09
3
OT: Subversion repository layout
Hi, I''m trying to get a nice repository structure happening and was wondering what other people like to use. I''m about ready to publish a rails app. This app now lives in myapp/trunk When this app goes live I will need to freeze it so I will copy myapp/trunk to myapp/tags/release-1.0 (right?) I also would like to get going on a new version which will break the current
2007 Jan 25
6
NOT FOUND error
I''ve been hunting the web and reading the mailing lists all day but I''m not finding any guidance on this problem. When I try to talk to my mongrel it simply responds with NOT FOUND and nothing else. I can''t find anything on google because this has to be the second most commond phrase in existence. Any help or guidance would be greatly appreciated. Sincerely, Chuck Vose
2006 Dec 01
4
uninitialized constant error in app but not when using console
I''ve got a wierd issue here and maybe someone can assist i created a module in my apps lib directory which i use for authenticating against an external source (among other things). lib/myapp.rb ----------------- require ''rubygems'' require_gem ''activerecord'' # uses activerecord odbc adapter by openlink module MyApp module ExternalSource class
2007 Jan 02
2
problem with mongrel/apache2.2.3 and subdomain setup
Hi all I got a vps setup amazingly fast using the deprec recipes on Ubuntu edgy, but now I''m having a minor issue where my site loads for the main domain when I only want it accessible from the subdomain. This is a pretty typical setup, apache 2.2.3 -> mongrel_proxy_balancer -> mongrel cluster. I''m sure I''m missing something obvious in the config... I have the
2006 Apr 12
6
distinguishing mapped urls from ordinary action urls
I want to present different view depending on the url. example below: http://myapp/start/show?url=xZq http://myapp/xZq both addresses are controlled by a single controller and the same action. the second url is only mapped in routes.rb how can I distinguished the mapped url and present a slightly different view in it? Sabon -------------- next part -------------- An HTML attachment was
2005 Mar 02
2
[PATCH] klcc compatibility with gcc
Here's a patch to klcc.in from klibc-0.202. The context: I have an application, managed with GNU automake/autoconf. Packagers should be able to build the application with klibc if available, with plain gcc otherwise, as follows: $ cd ~/klibc-0.202 $ ... make linux symlink $ make bindir=$HOME/local/bin \ mandir=$HOME/local/man \ INSTALLDIR=$HOME/local \ SHLIBDIR=$HOME/local/shlib \
2006 Feb 25
6
[OT-ish] Rails, Mongrel and apache
This is kind of off topic. I want to put my fancy rails app (myapp) as a subdirectory on my os x server. so my osx server works fine right now as www.mydomain.com. How do I tell apache (1.3 i think) to proxy web requests for a subdirectory /myapp to localhost:3000 where I have mongrel running (Jed, you rock)? I googled, but I don''t know the right words to use, so I''m not
2006 Jul 13
3
How do I pass parameters to my program when using WINE?
Hello, I'm trying to figure out the proper way of passing parameters to my program that is being run by WINE. I've been trying different things I've found in Google, but none have seemed to work yet. The parameters work in a Windows environment, so I do believe the program is okay. This is on a SUSE/SLES 9 machine using WINE .917. If I want to pass the parameter