search for: whywontitletm

Displaying 10 results from an estimated 10 matches for "whywontitletm".

Did you mean: whywontitletme
2006 May 08
2
Queries with has_and_belongs_to_many relationship
I was able to create a has_and_belongs_to_many relationship for my app, but now I''m not too sure how to write queries for it. Basically, I have a table ''courses'' that has_and_belongs_to_many ''categories'' and vice versa So I''m trying to figure out how I would find only the courses that belong to a category that I specify. Let''s
2006 May 23
2
Ordinalizing a date
I''m trying to use the ordinalize() method to ordinalize a day. Here''s how far I''ve gotten: @reportday = Time.now.at_beginning_of_week.strftime("%d").to_i @ordinalized_reportday = "#{@reportday}".ordinalize I was thinking it wasn''t working because the date is being returned as a string, however I added the .to_i and still it returns an
2006 May 18
3
"About your application’s environment" Effect
I was wondering if there is a Rails method that does something similar to the "About your application?s environment" link on the "Welcome Aboard" page you get when you first install Rails. What the link does is make and AJAX call, then blind down and up using AJAX. Thanks. -- Posted via http://www.ruby-forum.com/.
2006 May 21
3
First try with lighttpd
Hi, I have a Rails application sitting on my computer that works just fine with webrick. I would like to try to serve it locally with lighttpd I followed the instructions on the hivelogic site for installing lighttpd http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger Then I looked on page 457 in the Agile Rails book for instructions about configuring the rails app for
2006 Jun 10
0
Changing default file locations
I was wondering how you change where rails looks for files. i.e. how would I have it get stylesheets from a folder named "css"? I know I could use a standard <link rel="stylesheet" type="text/css" href="/css/css.css" />, but that''s not as cool as using the rails tag. Similarly I''d like to know how to do this for JavaScript as
2006 May 03
4
Simple Toggle Question
I''m having trouble with the toggle() function from prototype. Basically I want the element hidden by default, and I can''t seem to do it. My code: The CSS: #furtherinfo { dislplay: none; } The View: <%= link_to_function(''Further Information'', "Element.toggle(''furtherinfo'')") %> <div id="furtherinfo">
2006 May 09
4
changing the color of :highlight
Is there an easy way to change to color of the :highlight effect? :complete => visual_effect(:highlight, "targetid", :duration => 1) thanks -- Posted via http://www.ruby-forum.com/.
2006 May 11
0
creating variables on the fly with a loop
I''m trying to clean up some of my sloppy code, and one of the things I''m working on is trying to make this huge group of variables a bit more elegant. My variables look like this: @business_core_courses = Category.find_by_title(''business_core_courses'').courses @written_communication = Category.find_by_title(''written_communication'').courses
2006 May 02
5
does not equal conditional
I am trying to figure out how to write a conditional statement that will execute only if a specified variable is not empty. Right now my view looks like this: <dt>Building Regulations</dt> <% for link in @cat1 %> <dd><a href="<%= link.url %>"><%= link.title %></a></dd> <% end %> Action: @cat1 = Link.find(:all, :conditions
2006 May 10
4
using partials in a for loop
I''m trying to write a partial for a link_to_remote that i''m using over and over again, but simply moving the code to a partial doesn''t seem to work. Here is how I have it set up: class_planner.rhtml: <% for course in @courses %> <%= render :partial => "class_list" %> <% end %> _class_list.rhtml: <li> <%= link_to_remote