Pablo Olmos de Aguilera Corradini
2010-Nov-07 15:58 UTC
Create default database/table on Rails 3 app
Hi! I''m creating an app where I need to compare the user input with a default database and give the corresponding value (something like what the Lookup function does in spreadsheets). For that I need to things that I don''t understand... 1.- How can I create a default database (or table) for production? Should I use fixtures for that? 2.- How can I compare two values from the table? In my case is to look for an age and the give back kcal/day requirements; I believe in symphony I''d use something like those magic methods, findBy* or findbyOne*, but I don''t know how to do something similar in rails... there''s such a magic method? I hope you can guide me! :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Apparently Analagous Threads
- Newb Question : How do I load the Rsymphony Library, and How do I get Symphony Running on my windows Vista?
- p.value OR F.value?
- unable to load shared library: undefined symbol
- Nested lists and blank lines
- (Classical) Request for Standardization of expanded TAGS