search for: schreifel

Displaying 7 results from an estimated 7 matches for "schreifel".

Did you mean: schreifels
2006 Jun 27
4
Use link_to in a controller?
...seful in a controller. I am trying to create a flash[:notice] and I want to link to another page. Of course, I could hard code the HTML, but for the sake of consistency, I was wondering if there is a way to abstract it from within the controller (link_to is not accessible there). Thanks! Michael Schreifels
2006 Jul 18
3
DB Migrations & Column Order
Hello, I created a table and about 10 migrations down the line I decided that I needed to add an ID column (this was actually a table for a has_many :through and I recently realized that it needs an ID column, unlike HABTM tables). I am a big perfectionist and I frequently run "SHOW COLUMNS IN table;", so I naturally expect to see the "id" column the first one listed. However,
2006 Jul 27
2
Agile Web Development Problem
I am following that book, and I bump into this error in the Cart Creation Chapter. Can anyone help me? NoMethodError in Store#display_cart Showing app/views/store/display_cart.rhtml where line #6 raised: undefined method `product'' for 666.0:Float -- Posted via http://www.ruby-forum.com/.
2006 Jul 25
11
Prevent users from entering urls
How could I make it so that links on my page could link to a controllers action, but if the user manually entered the url, it would redirect them back to the main page? Is this possible? Thank you, -Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2006 Jul 31
20
RADRAILS installation guide
hi all is there eany installation guide that explais how to set up RadRails and how to create a RoR project with eclipse? thanks -- Posted via http://www.ruby-forum.com/.
2006 Jul 27
0
Controllers, Models, and Validations...
Hello, After listening to DHH''s 2006 RailsConf keynote, I decided to take a leap on my current application and do a little more re-organizing to make it more CRUD-based. As such, I ended up changing some things around to get this (simplified): User has_many :enrollments, :conditions => ''status > 0'' User has_many :schools, :through => :enrollments User has_many
2006 Jul 30
0
Migrations: execute() and importing SQL files
Hello, I have an SQL file that I want to import in a migration. It is data that will never change and must always be in the database for the application (if you must know, it is a database of about 140,000 cities in the U.S.). Originally, I did this: cd ~/app mysql -u root source db/migrate/initial.db So then I thought this would work in my migration: def self.up execute ''source