similar to: Need advice on RoR app design

Displaying 20 results from an estimated 3000 matches similar to: "Need advice on RoR app design"

2006 Jan 17
6
Rails Best Practices Page
Hey, I have been progressively learning more and more rails each day (from both a current project, reading the agile book, and this list). Does anybody think it would be beneficial to have kind of like a rails "Best Practices" page that lists some of the better ways of handling certain functions of rails (that are common in most apps) that are both more elegant, and efficient. For
2006 Jan 31
1
Inserting NULL values into PostgreSQL from Rails
I have several TIME columns in a PostgreSQL table that I am trying to store times of day in. These columns allow NULL values since there may some records where there is no time to store. My problem is that Rails is inserting a default value into these fields (the result of calling Time.new) regardless of the value that is passed from a form. I am generating select tags with possible time
2006 Jan 30
1
auto_complete_with_index_for
I have a crude hack to allow auto_complete to work with indexed text fields. I needed it for a timecard entry form with an arbtirary number of records which can be added/changed/delete willy-nilly by users. One of the fields is a perfect candidate for autocomplete since it references a database object with a large number of choices and long descriptions. Using a select list is extremely ugly in
2006 Feb 01
4
Locking out users from certain records/urls
I am using the standard login controller that ships with RoR to authenticate users in my application. In my app, Users belong to Clients, Clients have Projects that users are assigned to (stored in a stakeholder table with user_id and project_id columns) , then each project has a bunch of folders and assets (file uploads). So currently I have urls that look like /project/show/12 etc. I want
2006 Jan 31
19
Best Practices: Escaping text on input or output?
In web applications that have user generated content, it is clearly necessary to provide some ability to ''escape'' user generated text to avoid SQL injection, XSS, and other nasty attacks. The existing dogma on this point seems to favor escaping text as it comes out of the database, rather than doing it on the way in. I''m not sure that I understand the logic behind
2006 Jan 19
5
TIP: Using field_error_proc to add style attributes to form elements
I just put this up on the wiki, and thought I''d share in case it''s useful to anyone else. This is handy if you don?t want to wrap your input elements inside a div when an error occurs, but instead want to add some sort of CSS style to fields with errors: ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| msg = instance.error_message error_style =
2006 Jan 02
19
AR: How to store and restore in YML.
Hello- I have a database with entries that are segmented by customers. I would like to be able to store / delete / restore a particular customer''s information. I will need to rebuild the rows on restore and also rebuild the associations for the different tables. For example, customer { id name } companies { id customer_id (belongs_to) name } contacts { id
2006 Jan 01
7
Can''t get select helper to populate dropdown w/default value
Guys, I searched this forum and found plenty of people having this problem, but I didn''t see any definitive solution. Usings Rails 1.0. When I edit an existing record, I can''t get the basic "select" helper to display the current value contained in the field of the record. All of my other (text) fields populate correctly with current field values. There appears
2006 May 26
4
Jamis, problem w/Capistrano
Jamis, I''ve spent hours trying to get Capistrano working, to no avail. I''m hosting over at www.railsplayground.com, and here''s their instructions I''ve been following: http://tinyurl.com/hyo93 I can''t get past step 7. When I execute "rake remote:setup", I get a rake aborted! message. When I do a "rake --tasks", I get only a
2006 Apr 19
2
select_tag and :include_blank => true not working
Guys, I''m using select_tag to display a non-model dropdown, which works fine. However, I''ve tried every which way to use the :include_blank => true option, but it simply won''t display a blank value. Using :include_blank => true with select on model fields works fine. Can someone please show me a working example? -- Posted via http://www.ruby-forum.com/.
2006 Jan 12
0
Easy Question, I Think [re-post, sorry if dupe]
I am just getting started with Rails, don''t know any Ruby, and don''t quite even get object oriented programming yet. I have tweaked my schema to The Rails Way and have generated a bit of scaffolding. I am trying to create a new Part, which references a PartName and a PartNumber. I can create a PartNumber on the fly, but the PartName has to exist. I have an inelegant solution
2006 May 30
6
Why would I choose RoR over Turbogears
I''m trying to get some answers as to why I (my company actually) would go with RoR over TurboGears. The developer staff is fluent in both Ruby and Python so that is not an issue. Rails is well into its release cycle whereas Turbogears won''t be at 1.0 until later this week. They both do essentially the same thing and they both have cool features unique to themselves
2006 Jan 17
2
multiple GLMs with lmList in lme4
I'd like to fit a GLM to each of a number of subsets of some data. The `family' argument to `lmList' (in lme4) has given me cause for optimism, but so far I've only been able to achieve linear model fits. For example > df <- data.frame(gp = gp.temp <- factor(rep(1:3, each = 100)), x = x.temp <- rnorm(300), y = rpois(300, exp((-1:1)[gp.temp] + x.temp))) Then a call to
2006 Jun 12
2
Ruby on Rails Copenhagen Meetup
Hi Railers If you are in the Copenhagen area on the 29th of this month (that''s a Thursday) Jesper and I would be glad to see you at Caf? Selina in the central Copenhagen for the first of many Ruby on Rails meetups. We start at 20:30 hours and have of cause arranged for free beer and complementary WiFi. Our goal is to create an inspiring atmosphere where railers (new and old) can
2005 Aug 16
3
Rails Docs in CHM format
Hi Folks, For the Windows Railers, I''ve made the Rails docs available as a CHM file: http://dema.ruby.com.br/articles/2005/08/16/rails-docs-in-chm-format Cheers, Dema -- http://dema.ruby.com.br - Rails from a .NET perspective
2005 Oct 05
2
Seattle Railers gathering for a beer
This is a general invite to any/all Railers in the Seattle area who want to get together for beer/food. Nothing formal, just a "get to know ya" gathering. Details: Thursday, Oct 13 (next week), 7pm Bellevue Red Robin - *http://tinyurl.com/d678c* -- ~~~~~~~~~~~~~~~~~~~ D''Andrew "Dave" Thompson http://dathompson.blogspot.com
2005 May 24
3
Wine on Macs ?
Now that MacOS is Unix-based, can Wine be run on them ? -- Andrew You can be the captain I will draw the chart Sailing into destiny Closer to the heart Closer to the Heart by Rush (A Farewell to Kings, 1977) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2004 Jan 15
4
People detected as fax machines
A caller to me was this afternoon detected as a fax machine: Jan 15 15:31:17 NOTICE[41997]: File chan_zap.c, Line 3564 (zt_read): Fax detected, but no fax extension ... and then redirected to voicemail. An extract from extensions.conf is attached below. Is there any way to stop * even considering an incoming call on a line as a fax call? Iain bell] include => mailboxes include
2006 Aug 08
6
[Very OT] Steve Jobs, is he sick?
For us "Railers" on Mac systems we all probably watched Steve Job''s keynote at the WWDC yesterday. Was it just me, or did Steve look "sick"? I mean he has lost a lot of weight and his skin was very drawn. -- Posted via http://www.ruby-forum.com/.
2020 Oct 28
2
GT710 and Nouveau on ARM/ARM64
Hi Ilia Thanks for taking the time to reply. On Wed, 28 Oct 2020 at 14:10, Ilia Mirkin <imirkin at alum.mit.edu> wrote: > > The most common issue on arm is that the pci memory window is too narrow to allocate all the BARs. Can you see if there are messages in the kernel to that effect? All the BAR allocations seem to succeed except for the IO one. AIUI I/O is deprecated, but is it