[Rails] Javascript template, extension naming ?

2009-10-09 Thread Teedub
It seems that I have a choice of blah.js blah.rjs blah.js.rjs and blah.js.erb plus I guess blah.rjs.erb (maybe) I know that this is somewhat version dependent. Which is the bestest? and is there a difference. Thanks in advance. --~--~-~--~~~---~--~~ You received

[Rails] Looking for RailsConf ticket

2009-04-24 Thread Teedub
I can't really afford to go, but if I had a free/really cheap ticket, then I could swing it. If anyone has an extra ticket, I would love to keep it from going to waste. Last minute is OK. OK, quit laughing. Thanks. --~--~-~--~~~---~--~~ You received this message

[Rails] Re: Ruby Debug Not Working

2009-01-18 Thread Teedub
I think you need mongrel for debug try script/server mongrel On Jan 18, 6:21 am, Eric J eric.d.john...@gmail.com wrote: I put require ruby-debug at the top of config/environments/ development.rb. I just tried moving it to the bottom of the file and that didn't seem to help either. I put the

[Rails] Re: Form doesn't appear in the view.. why?

2009-01-18 Thread Teedub
Try this tr td colspan=3 % form_for :vendor do |f| -% %= f.text_field :name, :size = 15 % %= f.text_field :location, :size = 15 % %= f.submit 'save' % % end -% /td /tr On Jan 18, 5:39 am, Shilo

[Rails] Re: Routing error for application

2009-01-18 Thread Teedub
Go into your public directory (in your project) and rename the index.html to something else Open config/routes and near the top add map.resources :my_tests Kill the process (control + c) and restart with script/server That should do it On Jan 17, 11:52 pm, Ramya ramya.vict...@gmail.com wrote:

[Rails] Re: MYSQL COLUMN TYPE SET

2009-01-18 Thread Teedub
I am not familiar with SET but you can pass any sql in a migration with the Execute command Like so: (this is adding a foreign key and a GUID id rather than an auto-increment integer, but you get the point.) class CreateSeats ActiveRecord::Migration def self.up create_table(:seats, :id

[Rails] Confused about line of code in The Rails Way

2009-01-11 Thread Teedub
I am reading Obie's book (again) and I am confused about a line on page 450. This is the book that says Covers Rails 2.0 in a yellow circle on the cover. The erb code is: % remote_form_for :addition, @addition, :url = additions_path :update = 'result' do |f|... A snippet of the output

[Rails] Re: Restful Authentication Uninitialized Constant in Production...

2009-01-11 Thread Teedub
http://www.mail-archive.com/rubyonrails-talk@googlegroups.com/msg9.html says ...rename vendor/plugins/authentication-plugin to something without a hyphen character (like ‘authentication’ or ‘restful_authentication’). Hope this helps On Jan 11, 6:34 pm, Ben Wilson dau...@gmail.com wrote:

[Rails] Re: A CSS issue

2008-12-28 Thread Teedub
validate your CSS here http://jigsaw.w3.org/css-validator/#validate-by-input Validate your HTML here: http://validator.w3.org/#validate_by_input just paste them in and you will be told about any errors. Good Luck On Dec 28, 6:57 pm, John Yerhot joyer...@gmail.com wrote: Check your html

[Rails] Re: Installing a branched gem from git?

2008-12-27 Thread Teedub
Still stuck here any help would be appreciated as to how to handle branched gems with prefixed names. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Installing a branched gem from git?

2008-12-27 Thread Teedub
, Jeremy Weiskotten rails-mailing-l...@andreas- s.net wrote: Teedub wrote: Still stuck here any help would be appreciated as to how to handle branched gems with prefixed names. Thanks http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-... Does that help? -- Posted

[Rails] Re: Should I learn Ruby on Rails? What book?

2008-12-26 Thread Teedub
You will need to learn Ruby also David A Black's book Ruby for Rails is excellent. He is also writing The well grounded Rubyist which is due out soon and the preview is great. David has the ability to explain things in a manner that actually tells you how it works. Most other books I have read

[Rails] Installing a branched gem from git?

2008-12-26 Thread Teedub
Happy Holidays, This question happens to be about juggernaut, but the problem is generic. I am waiting to be accepted to the juggernaut google group or I would post there. I am playing with juggernaut and I see that the latest commit by the original author is version 5.7 If I do sudo gem

[Rails] What to call Rails + merb

2008-12-26 Thread Teedub
++ (hold your fire, it's a joke) Rails[:merb] RailsMerb meRails MerbRails :rails Ok, You can FLAME me now. Happy days Teedub --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Bug in schema.rb generation during db:migrate

2008-12-04 Thread Teedub
I am thinking that I have found a bug in Rails migrations. My app is using UUIDtools to generate guids for primary keys. To do this I pass :id=false and then create my own id column as shown below. Next I leverage execute to create an index. It seems to work fine. The table in MySql is perfect.

[Rails] Is Rails create_table smart enough to know if a table already exists

2008-12-03 Thread Teedub
If I run a migration and the table already exists, is rails create_table smart enough to drop the table first, or should I add something like line #1 below. And.. if the foreign key 'fk_seats_venues' existed, would I not need to drop it before dropping the table? I am doing a bunch of

[Rails] Re: Help with ruby query!

2008-12-03 Thread Teedub
I think you can find that answer here: http://railscasts.com/episodes/3-find-through-association On Dec 3, 7:43 pm, Jay Mark [EMAIL PROTECTED] wrote: I am using Rails 2.0.2 with mysql database I have two tables: book and author Table book has 3 columns: id, isbn, and title Table author

[Rails] Re: aasm callback order?

2008-12-02 Thread Teedub
This is a bit more verbose. http://blog.methodmissing.com/2006/11/16/beyond-callbacks-for-complex-model-lifecycles/ On Dec 1, 8:54 pm, Dan Sharp [EMAIL PROTECTED] wrote: Dusty, That may very well be it. I thought it was a longer list, but maybe I'm just remembering the two lists (new vs.