Displaying 10 results from an estimated 10 matches for "cevenn".
Did you mean:
cevent
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
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 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 Jan 12
0
Easy Question, I Think [re-post, sorry if dupe]
...9;edit''
end
end
def destroy
Part.find(params[:id]).destroy
redirect_to :action => ''list''
end
end
--
"Her faults were those of her race and sex; her virtues were her own.
Farewell, and if for ever - "
-- "Travels with a Donkey in the Cevennes" by Robert Louis Stevenson
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 16
42
Linux Suggestions
I''m fairly new to Ruby & Rails and I come from a stricly M$ background. I''m
trying to move into the world of open source, but I don''t have a good roadmap.
I''m starting to develop a Rails-based product and I want to have the option to
distribute it to non-hosted customers. So I''ve said all that to say this... I
want to learn how to setup linux and