On Thu, Aug 11, 2011 at 1:15 PM, fredrated <[email protected]> wrote: > I have started a rails application I call 'timecard' using postgresql > as it's back-end. > (rails 3.0.7 on a Suse Linux machine) > > I edited the database.yml file to point to the dev prod and test > databases with proper user and password. > > I created the basic tables, models etc. using 'rails generate > controller' and 'rails generate scaffold' and 'rake db:migrate' and > everything seems ok. > > I started the rails server and pointed firefox at the proper url's and > everything is a go. > > Here is where it gets wierd. I just added 4 more records (using the > rails page with Firefox) to a table I originalled added 2 records to > last week. All the records show when I navigate to the proper url. > But when I directly access the table using the postgresql utility > 'psql' only the 2 records I added last week are listed! I wanted to > get the key id values of the records, which doesn't show on the > generic rails page, but the records aren't there!
Can you confirm your connecting to the same database from the rails app and from psql? Are you sure the index page doesn't have the data harcoded somewhere? Have you tried copying the database with a different name and change your app to use the new database? Do you have your tests in place? > > Is some kind of caching going on? I exited Firefox but that didn't > force the records into the table, so what am I seeing in the rails > page, and where is my data? > > Thanks in advance for any help. --Fred > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Leonardo Mateo. There's no place like ~ -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

