search for: gleesonprop

Displaying 8 results from an estimated 8 matches for "gleesonprop".

2006 Feb 01
1
distance_of_time_in_words_to_now with "ago" suffix
I wanted the distance_of_time_in_words_to_now method to have '' ago'' suffixed to it when the date is in the past, I assumed this would be the default behaviour but apparently not. I know of a REALLY messy way that i could solve this with, but it''s so ugly I can''t be bothered Does anybody have an easy, elegant solution?
2006 Feb 08
3
ungenerate / remove scaffold command?
I have seen this somewhere and can''t find it now. Is there an ungenerate or remove command for the scaffold generator. It would be easier than removing all the files by hand. I have tried ./script/ungenerate but no luck. Thanks -- Posted via http://www.ruby-forum.com/.
2006 May 01
0
problem with in_place_editor_field
I can''t seem to pass any options other thant :rows to the in_place_editor <p><%= in_place_editor_field :gallery, ''description'', {}, {:rows => 2, :cols => 15} %></p> :cols is just not working, a quick look at the html source confirms this? I am using rails 1.0..
2006 Mar 27
0
no :group option in paginate helper?
I need to use :group in my paginate helper, but it seems not to support this option?
2006 Feb 02
1
tricky form validation
Hi list, I want to create a form validation in my Marketing Model. I want to raise an error only if a previous marketing campaign for a property has not been completed (ie. ended_on IS NULL) I managed to get this working in the Controller using something this: ... if Marketing.count("property_id = #{@marketing.property_id} AND ended_on IS NULL") > 0 ... However I assume
2006 Feb 02
0
date_select problem
Whenever a date_select field fails validation, The returned date_select that has the .fieldwiterrors css class is wrapping and obscuring the month and day dropdowns. So basically I can only see the Year dropdown. The others are visible in the html markup but seem to be totally obscured.???
2006 Jan 13
1
Accessing file_column_helper from withing controller
Hi All, i have i niggly little showstopper -> I need to access file_column_helper from within the controller, as I need to include an image in my "pdf-write" code... Any sane way to do this? "Require ''rails_file_column''" still gives me an error: "undefined method `url_for_file_column''..." (I am using *svn* version with Rails 1.0)
2006 Feb 02
5
access controller var within model
I need to access params[:field_name] from within my Model. @params[:field_name] isn''t working?