similar to: App design help for a newbie (trying again)

Displaying 10 results from an estimated 10 matches similar to: "App design help for a newbie (trying again)"

2006 Mar 30
5
Has_many :through problems -- please help
I''m having a lot of trouble with has_many, :through and could really use some assistance. I''ve got a User and Group class. Users can subscribe to groups, and groups should know who''s subscribed. I''ve got a join table (group_subscriptions) with group_id, user_id, and it''s own id element. Users has "has_many :groups, :through =>
2006 Mar 16
2
WEBrick and OS X 10.4.5 problems?
Has anyone who is running OS X 10.4.5 and the security patches thereafter noticed that WEBrick is no longer functioning? I have a machine at school that I believe to be patched with 10.4.5 but not with the latest security patch and WEBrick seems to run fine for it. However, on my machine at home I can''t get WEBrick to successfully run even freshly generated apps. For both
2006 Mar 22
2
habtm vs. has_many/belongs_to
In AWDWR David says (pg 232), "When a Join Wants to Be a Model: While a many-to-many relation with attributes can often seem like the obvious choice, it?s often a mirage for a missing domain model. When it is, it can be advantageous to convert this relationship into a real model and decorate it with a richer set of behavior. This lets you accompany the data with methods. As an example,
2006 Apr 21
2
Forms Containing Collections problem
Can anyone tell me why I''m getting the error "The error occured while evaluating nil.id_before_type_cast" for the following view code <% for entry in participant_portfolio.portfolio_entries -%> <%= select "entry[]" , :id, @buyer_profiles, :selected => entry.buyer_profile_id %> <% end -%> This seems to only happen when I use
2006 Mar 15
5
Passing params to a component
I see from http://rubyonrails.org/api/classes/ActionController/Components.html that is possible to pass paramaters to a component. I don''t understand the exact syntax. I''m trying: @master_id = @params[''master_id''] in the components controller but it is not working. ==== Details: In my calling view I have: <%= h(@opportunity.id) %> <div
2006 Apr 03
0
has_many questions
My application has two models I''d like to have multiple join tables between, Users and Groups. Users have the ability to subscribe to a Group, while a Group would like to know its membership. Additionally, a User can administer several Groups and a Group should know about its several Administators (Users). I have the following declarations: class Administrator <
2006 Jun 14
2
Can pagination work with caching
I am currently caching a page that indexes blog entries. Paginate was used to break the entries up. Now when you click on next at the bottom of the page it is only reloading the first page. Im hoping, against odds, that someone here knows of a way to make paginate and cache play together. -- Posted via http://www.ruby-forum.com/.
2006 Mar 15
0
App design help for a newbie
Hi there, I''m working on a new student portal system using Rails for a large university. As part of this application, I plan on students being able to customize their own calendar, collection of commonly used links, aggregation of newsfeeds (from the university, student groups, etc), and to see a listing of major announcements they should be aware of. It seems to me, to make the
2010 May 23
1
[Rails 3] Trouble with named routes and form_for
Hi guys, I''m having trouble getting named routes and form_for to play nicely in quite the way I would expect. Here''s a quick summary of what I''ve got going on: Named route: resources :thread, :class_name => "forum_thread" Controller name: forum_thread_controller Model object: forum_thread In both my new and edit actions I''m setting up an
2006 May 06
0
Caching webservices?
Is there any way to do this? I know that you can cache controllers (described at http://scottstuff.net/blog/articles/2005/10/04/rails-caches_action_with_params), but I can''t find anything in the docs about caching web services. Thanks, Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: