similar to: External controller code

Displaying 20 results from an estimated 200 matches similar to: "External controller code"

2007 Aug 23
4
index all but search in some fields
Hi, i like to index most of my model fields, but limit the search only to a (changing) subset of this fields. -- Posted via http://www.ruby-forum.com/.
2006 Jun 15
3
Need help creating a clever route
What I want to do is wrap all the scaffolded administrated pages for my webapp into an admin folder in the controllers and views folders. So... /app /controllers /admin issue_controller.rb article_controller.rb topic_controller.rb ... etc. ... /views /admin /issue _form.rhtml edit.rhtml list.rhtml new.rhtml
2006 Sep 26
1
extended ACLs and Samba
Hi, i've a Project share with many subfolders. In this subfolder many user have dedicated access rights to single files. Sometimes a project member change and the new one should get the same rights as the old one. But here is my problem. With the following line i can easy change the owner of files: find /samba/project -user oldid -exec chown newid {} ";" But i don't know
2006 Apr 18
7
Connecting to multiple databases
Hi Everyone, I am trying to connect to multiple databases and followed along the Recipe in Chad Fowlers ''Rails Recipes'' book (which basically is about establishing the connection in a subclass of ActiveRecord::Base, and inheriting all classes in need of this connection from this class) Chad Fowler says: "You won''t be able to instantiate an External, of course,
2003 Nov 20
5
The internet needs a dialing code..
It seems to me that ITSP's like to use a US dialing code eg 1-xxx Wouldn't it be cool to have an Internet dialing code?? I don't know what the structures are or how the allocations work but it would be so cool to know that 1-xxx was USA , 44-xxx was UK and yy-xxx was an internet phone.. That way the whole internet phone space could be consolidated into a single dialing structure
2006 Jan 22
6
*Very* basic layout question
I''m trying to use a different layout for just one action in my controller, all the other actions use the application.rhtml layout, so what i''m doing is ... class SomeController < ApplicationController layout "simple", :only=> :some_action ...... end and the "simple" layout is applied to all the actions, can someone please give me a hint?
2004 Jun 23
0
UPDATE Patch for postgres enabled app_voicemail.c
I forgot to take out the portion that would read in the voicemail boxes from the text file. If you want to leave it in then you could have some voicemail boxes defined in the text voicemail.conf. I do not, so I have removed it. Below is the new patch: *** app_voicemail.c 2004-06-23 07:55:54.000000000 -0600 --- app_voicemail.c.new 2004-06-23 07:55:47.000000000 -0600 *************** *** 49,61 ****
2004 Jun 23
0
Patch for postgres enabled app_voicemail.c
Hello all, I am just getting going on building my system, but I thought I'd send you all a patch that I wrote so the command: show voicemail users issued from the CLI works properly when there is a postgres backend for the voicemail. The current version of the app does not display the voicemail boxes found in a database. It is called in the load_config function. I haven't done
2000 Mar 17
1
TEST RELEASE: 1.2.3pre5
Yeat another test release. This fixes a few problems that were reported in the last 24 hours. One security problem fixed by this release is the braindead linking behaviour of AIX's ld. In their infinite wisdom, IBM decided to make the -L linker flag specify /runtime/ link paths. This could allow someone to substitute a modified shared library to a suid program. For gory details, have a look
2006 Jun 09
4
app at root domain
I have my app up and running at www.domainname.com/controller/ ... but need to get it set up at just www.domainname.com I see that by default, rails is loading the pre-made index file in the /public dir. How can I override this without changing any directories around in my app? Thanks! -stirman -- Posted via http://www.ruby-forum.com/.
2006 Aug 14
3
php include() equivalent
Is there an equivelent ruby function that is similar or exactly the same as the php include() function? I would like to be able to include a header for my RoR web application that refers to a url. Thanks! -Gilles -- Posted via http://www.ruby-forum.com/.
2007 Mar 08
2
Q: Samba Proxy or SAMBA Cluster?
Hello, we have here a SAMBA Server with Shares for worldwide Projects. Now the problem is the slow access from some branches. We have now the idea to use a CIFS Proxy or a Cluster to provide the files localy. The Idea: The main samba server holds all files and all user information. The CIFS Proxy in the remote location have a copy of all files and a copy of the user database. If a user
2005 Dec 28
3
Module loading
I''ve looked high and low for the answer to this and can''t seem to find anything that helps. I have an admin section (much like Typo) where all controllers are based on the Admin::BaseController. My directory structure is [RAILS] -app --controllers ---admin ----base_controller.rb ----products_controller.rb Products controller is: class Admin::ProductsController <
2008 Jan 21
3
A method accessible from all controllers and views ? How ?
Hi, I''ve got this method : def is_admin? @current_user && @current_user.admin == 1 end I want to be able to call this method from all my controllers and all my views. If I put this method in application_controller I can call it from all my controllers but none of my views. If I put this method in application_helper I can call it from all my views but none of my controllers.
2006 Jun 08
8
Routing help.... it is so difficult!
hi guys, sorry to trouble you all but i really dont understand how this routing thing work... it seems easy but it just dont work for me! here''s the situation : my url b4 : http://127.0.0.1:3001/admin/login my url after: http://127.0.0.1:3001/burninglegion/admin/login i wanna do something like this so i went to the routes.rb and type this: ActionController::Routing::Routes.draw do
2000 Mar 25
1
ANNOUNCE: openssh-1.2.3
The Unix/Linux port of OpenSSH 1.2.3 was released yesterday and should be available from a mirror near you. A mirror list is available from: http://violet.ibs.com.au/openssh/files/MIRRORS.html This release fixes the bugs reported since 1.2.2p1 and contains many cleanups from the OpenBSD tree. In particular, the OpenSSL detection problems have been resolved. The layout has changed a little bit.
2000 Mar 25
1
ANNOUNCE: openssh-1.2.3
The Unix/Linux port of OpenSSH 1.2.3 was released yesterday and should be available from a mirror near you. A mirror list is available from: http://violet.ibs.com.au/openssh/files/MIRRORS.html This release fixes the bugs reported since 1.2.2p1 and contains many cleanups from the OpenBSD tree. In particular, the OpenSSL detection problems have been resolved. The layout has changed a little bit.
2011 May 25
1
warning: toplevel constant SomeController referenced by Admin::SomeController
This issue has been discussed before (http://www.ruby-forum.com/topic/ 125392) and after spending a while debugging through this, I still don''t have a solution. Lets try again? I have two controllers, SomeController and Admin::SomeController. When SomeController is loaded first (which happens under spork, found out by editing ActiveSupport::AbstractController) I get warning: toplevel
2005 Dec 29
8
First module gives "unknown action"
Hi, I''m using "Agile Web Dev. w/Rails", which is great but has a minimum on grouping controllers into modules. I''ve successfully generated a module scaffold, so I have: app/controllers/admin_controller.rb app/controllers/admin/things_controller.rb (And the rest of the scaffold output, which seems normal.) However, browsing to http://localhost:3000/admin/things/
2006 Apr 22
3
Creating a select dropdown box with links to methods
What would be the best way to create a form select dropdown box and upon "submit" have it directly go to a controller method view? I have something that somewhat works, but I think there is probably a much easier way to do it. As of now, I have the dropdown list which when the form is submitted is handed to a controller method which basically I have my dropdown box: <%=