search for: cheltis

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

2006 Mar 12
11
HABTM selection conditions
Hi, I am currently trying to learn RoR and there is something I cannot figure out. I have two models: Article and Category, that are HABTM-linked. Everything works fine if I want to select all articles corresponding to a category, with something like @articles = @category.find(@params[:id]).articles However, I have a ''published'' field in my ''articles''
2006 Mar 13
5
What is the matter with content_for_layout?
Here is my layout file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>My Demands</title> <%= stylesheet_link_tag ''ajax_scaffold'', :media => ''all'' %> <%=
2006 Mar 13
4
Find and eager loading questions
Hi all, I want to see if I''m not missing something with associations and eager loading. (I''m currently using Locomotive on OS X and SQLite3.) I have two simple tables/models, set up properly: teams has_many :matches and matches belongs_to :teams. Matches has a match number and a team_id field (along with several other fields) and teams has a team_number field (again, along with
2006 Mar 12
5
Authentication and authorization of static content
Hello, I''m a Java programmer looking to make my life easier. Thus, I''m considering using Rails for my next project. I''ve read chunks of the Agile book and it looks like authorizing users at the Controller level is dead easy to do. However, I have a need to password protect static content in my site. In the J2EE world, I would use a servlet filter to intercept
2006 Mar 13
2
Routing in Rails
I am fiddling around with some special setups and my routing does not work. So I wonder: how does routing work in Rails? Is everything caught by dispatch.cgi script because it is the 404 handler? What happens with static content? Is it supposed to be found before the cgi script?
2006 Mar 13
8
Nested find(:all, :include => ) statements
Is there a way for me to do: OrderItem.find(:all, :include => [:user, :product => [:supplier]] So I don''t have a supplier_id on my order_item, but have it on my product, which is part of order_item. Joerg -- Posted via http://www.ruby-forum.com/.
2006 Mar 01
0
link_to problem when used in folder
I have split my appliction into 2 folders - public and restricted areas: "site" and "admin" Now, in "site" i have a "search" controller with the "results" action. I want to make a link that will keep all the parameters of the link <%= link_to ''link'', params %> However, instead of something like: