Displaying 8 results from an estimated 8 matches for "tableless".
Did you mean:
tablegens
2006 Jul 21
2
Tableless ActiveRecord attribute and my aching head
I beat my head against a wall for almost 2 hours with this issue.
My first problem was easily solved. I wanted a class that could use
ActiveRecord''s validation capabilities but without using a table behind
it (I would be persisting setup information in the session, but the
initial setup parameters come from a user input form)
No problem...found this link which got me up and running
2010 Aug 16
2
Form validation and processing w/o model (no Db/ActiveRecord)
All -
Trying not to fight rails on this, basically have a form and all the same as
would be with an ActiveRecord model except that there is no table. I started
out using this article:
http://stackoverflow.com/questions/315850/rails-model-without-database
...which is kind of a hack by inheriting ActiveRecord in to non-AR model but
am running into some problems and just have the feeling that I am
2006 May 22
1
New to rails, looking for some advice re: migrations
...ew places
where I''m having trouble understanding the expected workflow.
I''m trying to work with migrations from the beginner; its a port of an
existing application, but I''d like to let the db schema evolve as the
application grows, so I''m starting from an empty (tableless) database.
If I generate a migration, I can fill in the up/down methods and start
creating a table; rake migrate ran fan. However when I then generate a
model it seems to create another migration automatically that is named
appropriately for the eariler self-created migration. This seemed odd,
s...
2006 Aug 16
3
Validate your forms with a table-less model
Ive followed this example of how to validate a form with a tableless
model:
http://rails.techno-weenie.net/tip/2005/11/19/validate_your_forms_with_a_table_less_model
Ive got this example working but when validation fails the failed boxes
are not highlighted in red. At the moment i have a contact details form
and want to validate the information entered by the u...
2006 Mar 12
0
Validate a model with a session parameter
Hi
I''ve set a tableless model for a contact form with this instruction:
validates_format_of :captcha,
:with =>
ActionController::SessionManagement::session[:captcha],
:message => "Security code is wrong. Please enter it again"
Unfortunately it raises an undefinie...
2010 Nov 06
0
ActiveModel: undefined method `attributes`
Trying to setup a tableless model, and serialize it to XML, but am
getting:
NameError: undefined local variable or method `attributes''
anyone know what I need to get the attributes method defined?
thanks!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"...
2006 Jun 27
4
Not Active Record Model Validation
I have a problem with ruby on rails validation
total_book_toy.rhtml
================
<%= text_field ''book1'', ''title1'' %>
<%= text_field ''book2'', ''title2'' %>
I want to validate these text_field so user can''t insert same title.
However, I was stuck how to do it.
Or maybe you have another way how to do it.
2010 Oct 06
16
Dealing with an EAV database
I''ve inherited an EAV database and there''s really no option to remodel
it. Data is stored as key_name, key_value pairs
Trying to return a meaningful, unified recordset is far too complex to
be efficient.
I''ve decided to make use of the MySQL GROUP_CONCAT, and CONCAT_WS
functions to return a fast query result, with the consolidated fields
as one string.
The final data is