search for: date_added

Displaying 6 results from an estimated 6 matches for "date_added".

Did you mean: date_add
2006 Jun 09
0
Controller Modules Messed Me Up
...#39;'t get the public area to show the list of news. Here is what I did: /app/controllers/news_controller.rb class NewsController < ApplicationController def Index @news = News.news_items end end /app/models/news.rb class News < ActiveRecord::Base validates_presence_of :date_added, :date_live, :news_date, :added_by, :headline, :summary, :article def self.news_items find( :all, :conditions => "news_date <= now()", :order => "news_date desc") end end /app/views/news/index.rhtml <h1>Recent News&...
2006 May 07
0
Search question
Hello, I have an apartments table with these fields id, rooms, floor, price, date_added How do I make a search after these fields. I mean I have the form done, but I don''t know how to make the search. It can be none, one, or more of these fields. Anyone has an example? thanks -- Posted via http://www.ruby-forum.com/.
2005 Dec 30
3
Too many columns for list.rhtml to display on one page
I''ve gone once through the Agile book and am now attempting my own rails app. I''ve created a table named ''volunteers'' with over 15 columns. The problem is the default list.rhtml that is created with the scaffold, shows all the columns. I only want to show 4 of them with the list view. Where would I start to only return a handfull of columns to the
2006 Jul 01
6
Sorting by an attribute on a associated table
So, I have a User has_many :profiles. The most recently dated profile is considered the current one. I need to sort these users by name, but the name attribute is a member of the associated table. Is there any easy way to do this other than with some ugly find_by_sql? Maybe a more general question - is there a common solution to sorting in Ruby? -- Posted via http://www.ruby-forum.com/.
2006 Aug 18
3
Understanding MVC - view customization after using scaffolds
...ing details: Field Type Null Key Default Extra id int(11) NO PRI auto_increment customer_name varchar(50) NO inbound_retention int(11) NO outbound_retention int(11) NO unix_admin_email varchar(50) NO schedule_id int(11) NO transfer_inbound_type varchar(20) NO transfer_outbound_type varchar(20) NO date_added timestamp YES CURRENT_TIMESTAMP I then run the scaffold generation: ediweb> ruby script/generate scaffold customer Customerinfo exists app/controllers/ exists app/helpers/ exists app/views/customerinfo exists test/functional/ dependency model exists ap...
2006 May 02
1
SOAP client not seeing all of my AWS service methods
Hi all, Ruby 1.8.4 Rails 1.1.2 I''m a newb when it comes to SOAP, but I thought I''d give it a shot. I have several web services defined. However, when I try to connect with a SOAP client it seems the client is only picking up one of the services, called Hardware. require ''soap/wsdlDriver'' wsdl_url =