similar to: app structure

Displaying 20 results from an estimated 200000 matches similar to: "app structure"

2006 Feb 25
2
SSI like function in Rails?
Hey Im slowly learning ruby and rails... still having some problems with grasping the basic concepts though. How do I include a common html snippet in some of my views? (The snippet exists in two different flavors, I want to include either one depending on what type of user (admin/others) is requesting the page) I have tried the normal SSI include tags, but my WEBrick server cant handle
2006 Feb 22
0
model''s custom attributes not loaded if file is not in app/models/ folder, HELP!!
This has puzzled me for at least a week. please help. It seems that if a model class has any other custom attributes besides DB column attributes, and model class is not in /app/models/ folder, rails does not load custom attributes after 1st time, only DB column attributes. only way to see my custom attributes works is if model class has no module and is under /app/models/, not anywhere else.
2010 Jul 08
3
my web app seed data and cucumber
I''m writing a web app which is used a SaS. Each customer has their own db and app directory. I have a rake task which creates all necessary minimum data to run their website: default rights and roles, a superadmin user, a "us_states" table already populated, some local depots and terminals (it''s a logistics app). I don''t have any cucumber scenarios for it and
2006 Mar 03
0
error running generate scaffold - doesn''t see table which is there
Hi I''m trying to get some basic stuff working from the "Agile Web Dev with ROR" book - chapter 6 "Create the Maintenance App". (On linux, mysql 4.1, ruby 1.8.4) I have the depot_development db created, and teh "products" table definitely exists. The user name and pw are correct in database.yml But I get this: <snip> daniel@roomatthetop:~/work/demo$
2006 Apr 18
2
Connecting to multiple databases with multiple database users
Hi everyone, I was wondering what the common practice for handling multiple db users with fine grained privileges on multiple databases is. Against the often read guideline for rails users to keep with a single db as "more dbs don''t really make sense anyway", my opinion is that it DOES make sense to use more than one db schema for a number of reasons that I won''t
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 Jan 31
2
Need advice on RoR app design
Fellow Railers, Is there anything, anywhere, that I can read that discusses overall RoR app design? I have the Agile RoR book, which is great for learning the details of RoR, but unfortunately doesn''t cover the overall issue of creating a large, complex RoR app. My staff and I are still in the process of getting up to speed on Ruby and RoR, but we also need to begin thinking about
2006 Mar 05
2
AJAX call chain and DRY questions
Hey I have a page with a drop list. When the user selects an option in the drop I call an action in the controller with ajax. Now, in the controller, I gather some data from the db, but how do I present these data in a nice way? I really need to make use of the html helpers, but these clearly are not available in the controller. How do I output the array that I have gathered? My view page
2011 Dec 01
2
JNLP app problems
Hey folks, I'm trying to use a 5.3 box to run some JNLP apps, but all I get is a view of XML. I try doing some googling and don't come up with much other than this one thread that says I may need both 32 and 64 bit Java to run JNLP. But it is not clear to me how to do that. thanks, -Alan -- ?Don't eat anything you've ever seen advertised on TV? ? ? ? ?? - Michael Pollan,
2006 Mar 29
2
save related models from one form
I have three tables customers, indentities and people. I hav ecreated models for them. The are connected with foreign keys and has_many/belongs_to in this fashion: customers has_many: identities identities belongs_to: customer identities has_many: people people belongs_to: identities Now, I have a form in which I would like to create db entries for the three tables. customers have a password
2007 Jan 22
5
multiple database users for rails app?
Hey guys. Per my IT department''s policies, I need to have two separate database users for my rails database - one for public intarweb functionality, one for authenticated users'' functionality. The naive way to accomodate this would be to break the app up into two separate apps, but since they share the same models and resources, DRY suggests this isn''t the proper thing
2006 Jan 04
4
Multiple Sites, One Rails App
Here is the situation: We have one rails app that is built around our fairly large DB. Since we have many models and logic inside those models, it makes sense for us to build only one rails app and share it among several different sites (Public web site, internal data backend, etc). The thing I can''t quite get my head around is how to forward requests (using lighty) from different
2005 May 18
0
A cautionary tale on multiple databases under a single Rails app
Here is a cautionary tale to help others avoid my folly! I kept running into bizarre problems with my rails app. I run the latest Rails with FastCGI, Oracle 10g and Apache 1.x. After moderate load the server would throw up application errors. Looking in the logs I noticed that my underlying Oracle DB was complaining that it had opened too many processes and won''t open any more. Hmm...
2007 Oct 24
1
how to limit Amazon S3 access to my app's pages only (i.e. no hot-linking) ?
Hey there, I want to stream my app''s media from Amazon S3. I''ve gotten the basics down, having uploaded files, set their permissions for public access, and now can use their S3 URLs wherever I need them. My question is this: can I restrict access to my S3 files to only within the context of the pages that my application serves? I want to avoid people just looking at the
2012 Aug 03
1
asterisk realtime database structure
Hello, I was wondering if there is a tool that can create the realtime database structure for latest Asterisk version or a web resource/file containing the sql scripts. Hope I haven't missed obvious things, I had no luck searching on the web, in the wiki I found few pages with bits of sql or table structures, like:
2004 Jun 08
4
AS5300 and Asterisk
Hey all, I have an as5300 I use for dial in customers, we have 4 PRIs on it. We have a few free channels on it. I'm wondering if I setup SIP on the as5300 I can have asterisk use the free channels for dial out. I'd still have to use my TDM04B for incoming calls, but at least I can expand my outgoing. Anyone done anything like this before? I've never messed with VoIP on Cisco
2006 Jan 07
2
hosting with Pair : Rails'' app dies after a few seconds
First of all thanks a lot to the guys who answered the other topic. Host: Pair Networks - FreeBSD v.4.8-Stable - peulik.pair.com PHP and MySQL services running (is this a problem?) First of all, after I establish the ssh connection I''ve to type, as I mentioned in the old thread, GEM_PATH ~/lib/ruby/gems/1.8 otherwise the ruby installation is not found. position of the executable:
2015 Jan 26
2
Inspect a "delayed" assigned whose value throws an error?
On Mon, Jan 26, 2015 at 12:24 PM, Hadley Wickham <h.wickham at gmail.com> wrote: > If it was any other environment than the global, you could use substitute: > > e <- new.env() > delayedAssign("foo", stop("Hey!"), assign.env = e) > substitute(foo, e) > > delayedAssign("foo", stop("Hey!")) > substitute(foo) Hmm... interesting
2017 Dec 21
2
WERR_DS_DRA_MISSING_PARENT while Joining Samba4 DC to Samba4 Domain
I thought I had posted already, but my first message may have been confusing. Here is the output of the domain join: $ sudo samba-tool domain join redacted.domain.local DC -U"REDACTED\my.domain.admin" --dns-backend=SAMBA_INTERNAL Finding a writeable DC for domain 'redacted.domain.local' Found DC samba4dom.redacted.domain.local Password for [REDACTED\my.domain.admin]: NO DNS
2015 Jan 26
0
Inspect a "delayed" assigned whose value throws an error?
If it was any other environment than the global, you could use substitute: e <- new.env() delayedAssign("foo", stop("Hey!"), assign.env = e) substitute(foo, e) delayedAssign("foo", stop("Hey!")) substitute(foo) Hadley On Mon, Jan 26, 2015 at 12:53 PM, Henrik Bengtsson <hb at biostat.ucsf.edu> wrote: > Hi, I got an interesting programming