Displaying 4 results from an estimated 4 matches for "jilg".
Did you mean:
jig
2006 Jun 21
8
Modifying Model Output
Hi!
I''m a very-very new Ruby-on-Rails user even if I have some experience
with other Languages (mostly PHP, so this is my first real
object-oriented language)
My problem, newbie-ish as it is, is the following: I have a model,
Article, that returns Articles from the DB. Now, when a certain field of
the model (the intro text) contains no data, I want to fill it with a
truncated
2006 Jul 07
4
Calling a method each time an ActiveRecord Object is accessd
Hi,
I know that it is possible to execute code each time data is saved into
a model by using the +validate+ method.
However, is there also a way to execute code each time the data is
accessed, not just when it is changed?
Bye,
Winsmith
--
Posted via http://www.ruby-forum.com/.
2006 Jul 07
3
quick send_data question...
Hi,
I am using send_data to allow users to download files from the database
but ran into a small problem, it seems that files upload fine but when
they download only 64kb of the file is sent.
I''m using the basic rails code from the Agile book:
#upload code in my sheet model
def file=(document_field)
self.filename = base_part_of(document_field.original_filename)
2006 Aug 27
3
n-to-m relationships in Forms
Hi,
I can''t understand the RoR-API concerning certain form helpers. Can you
maybe help me?
I have a model, Film, with a habtm-relationship to the model Language.
Now if I want to have a form for editing/creating a Film, I''d like to
have checkboxes for each Language with those checked that are associated
with the Film in question.
Is there an "easy" way to do this