search for: seethroo

Displaying 12 results from an estimated 12 matches for "seethroo".

2006 Jun 24
2
error log for views?
...html" This is pretty unhelpful when I''m debugging. Is there an error log for Rails overall or for view errors specifically? Or is there some erb code I can insert into 500.html to show me the exact error message being generated? Thanks! -Jason -- Jason Frankovitz - jason@seethroo.us - http://www.seethroo.us/ work: (310) 601-8454 cell: (415) 254-4890 AIM/Skype: jfrankov
2006 Jul 08
1
conditional table association?
...s: id int url string tags: id int name string What I can''t figure out is how to tell the Event model that lort_id belongs_to links if the value is 1, and that it belongs_to tags if the value is 2. Is this possible/wise/insane? Thanks in advance! -Jason -- Jason Frankovitz - jason@seethroo.us - http://www.seethroo.us/ work: (310) 601-8454 cell: (415) 254-4890 AIM/Skype: jfrankov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060708/2065746a/attachment.html
2008 Sep 16
8
rspec, Rails 2.1.0, rubygems, Mac OS X Leopard - rubygems does not recognize latest version
...w it: $ spec spec/models/my_spec.rb Rails requires RubyGems >= 0.9.4 (you have 0.9.3). Please `gem update --system` and try again. ...but I already have the latest & greatest installed: $ gem search --local rubygem *** LOCAL GEMS *** rubygems-update (1.2.0, 0.9.5) Tue Sep 16 14:51:38 [~/Seethroo/working/code/ror/trunk] jfrankov@bigmac (504) $ sudo gem update --system Password: Updating RubyGems Nothing to update $ spec spec/models/my_spec.rb Rails requires RubyGems >= 0.9.4 (you have 0.9.3). Please `gem update --system` and try again. Any idea why this is "stuck"? I'...
2006 Jun 28
2
hash value won''t increment with =+ operator
...on''t do the hash[b.id] =+ 1 for some reason. I also tried doing it this way: if b.tags.include?(t) then hash[b.id] = x; x = x + 1; hash[b.id] = x ...but got the exact same output. Any advice about what I''m missing here would be great. Thanks! -Jason -- Jason Frankovitz - jason@seethroo.us - http://www.seethroo.us/ work: (310) 601-8454 cell: (415) 254-4890 AIM/Skype: jfrankov
2006 Jun 22
3
create pie chart
Hi, I want to be able create a pie chart using rails, does anyone know of any plugin''s taht could help me here? Scott -- Posted via http://www.ruby-forum.com/.
2006 Jun 22
2
id column for join table... kosher?
I''ve got two tables, bookmarks & tags. Using a has_and_belongs_to_many association, I can do lookups using a join table called bookmarks_tags. Two questions: 1. Can I have a migration for my join tables? Rails seems to "know" about join tables implicitly from the associations, but if I do a rake migrate the join tables won''t be built. I''ve been
2006 Sep 24
8
form_for and Multiple Models Being Saved
Howdy Folks, I want to use form_for to allow a user to submit a form that contains two instances of the same model. They are entering calendar dates and I want them to be able to submit 2 from the same form. Ok, so, using form_for, what is the best way to do this? form_for seems to be setup to handle a single instance in that it wants a name for the variable, etc... Has someone else done this?
2006 Sep 06
22
ROR host: dreamhost or godaddy?
hi all, i am looking for a host for my ROR web app. the target audience will be 70% from mainland china, and 30% from the rest of the world. i dont want a chinese hosst because: 1. it''s very slow for the rest of the world to access to it. 2. the speed is quite ok for china to access the us sites. both dreamhost and godaddy provide similar budget plans, and i saw them all from this
2006 Jun 14
0
testing table associations
First, thanks to everyone who replied to my pluralization question from before! Today I''m confused by associations. I''ve set up a bunch of associations in my models to describe these relationships: - each user can have many bookmarks and tags - each bookmark can have many users and tags - each tag can have many bookmarks and users (Part of what is confusing is that I can
2006 Jun 07
2
script/generate scaffold pluralizes class names
Hi everyone, I''m a rails & ruby nuby, and this is my first post to the list. Here''s my environment in case it helps diagnose my problem: Ruby version 1.8.4 (powerpc-darwin8.6.0) RubyGems version 0.8.11 Rails version 1.1.2 Active Record version 1.14.2 Action Pack version 1.12.1 Action Web Service version 1.1.2 Action Mailer version 1.2.1 Active Support version 1.3.1 I did
2006 Jun 10
6
table associations
First, thanks to everyone who replied to my pluralization question from before! Today I was trying to do what I think is called a "chained accessor". I have an "events" table and each event has one user. Instead of seeing the id number for each event''s user, I''d rather display the names of users instead. I tried to do this: class Event <
2006 Jun 21
3
rake migrate says table already exists
Hi all, I used the generate script to make a bunch of table migrations, resulting in files like 002_bookmarks.rb, 003_tags.rb, etc. When I did the ''rake migrate'', the db was set up but more migration files appeared, now called 009_create_bookmarks.rb, 010_create_tags.rb, etc. Now when I want to change the database (add a table or column, alter the schema) I do