similar to: Date length in english plugin/built in?

Displaying 20 results from an estimated 900 matches similar to: "Date length in english plugin/built in?"

2007 Jan 13
6
nice date function
Hi: you know the way the google and this forum presents dates? How it''s measure from the current date/time and presents nicely as "39 minutes ago", 2 days ago, etc.? Has anyone done a gem or other library object that I can get to do those types of dates? Thanks so much in advance! Mike -- Posted via http://www.ruby-forum.com/.
2006 Jul 20
1
Outputting date as "1 day ago" or "53 minutes ago"
When printing out the results of my "updated_at" field, I''d like to be able to print it as "Updated 5 days ago" instead of "Updated on 7/14/06." I''ve seen many blogs do this, is there an easy way to do it through rails / ruby? -- Posted via http://www.ruby-forum.com/.
2006 Aug 03
5
Multiple Loading events in form_remote_for
Is it possible to have multiple loading events in the params for form_remote_for? I''d like to do this :loading => "Element.show(''form-indicator'') and this :loading => "Element.hide(btn-submit'') Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jun 21
3
Simple range question
I have a model with a datetime field called start_date. I''d like to do a find on the model so that it returns only records with the start_date equal to the current day. Something like this: @foos = Foo.find(:all, :conditions => //?? start_date equal to today''s date ??// ] ) Thanks in advance for any help. -------------- next part
2008 May 20
2
DateHelpers .. don' display.. ?
HI I don''t understand what happen .. if I use the script/console : >> include ActionView::Helpers::DateHelper => Object >> include GLoc => Object >> time_ago_in_words(Time.now, include_seconds = false) => "moins d''une minute" I get the correct answer.. but I I write in my view <%= time_ago_in_words(Time.now, include_seconds = false)
2006 May 18
7
Ruby Before Rails
As I, like many people, are coming to ruby in the rails era, I''m curious about how Ruby Web Dev was done prior to rails. Any veterans want to share their insights? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/20cde24d/attachment.html
2006 Aug 10
2
search acts_as_taggable for multiple tags
Hey...I''m trying to search a Model that uses acts_as_taggable for multiple tags. I''d like to pass in a search string containing a space delimited tags names (i.e. "tag1 tag2") and return the objects that have been tagged by either one of those. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 11
18
Zip Code Ranges
Does anyone have any recommendations for working with zip code distance ranges? I need to calculate the distances between US zip codes. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060711/f133d7de/attachment-0001.html
2006 Jul 12
2
37 Signals - Music
So I''ve heard the 37 signals guys mostly work from home - but when you''re in the office, do you guys listen to music? If so - what kind of stuff do you play? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060712/14e7f63c/attachment.html
2006 Jul 24
1
Dev Web Server Setup Suggestions?
I inherited a PC that I''m turning into a *NIX web server for in house development. Its primary purpose would be for staging, before apps were released to a shared-hosting environment. I''m probably going to setup Apache 1.3/FastCGI to match where the site is currently hosted. I develop in Windows, but I really want to get more familiar with the command-line linux environment.
2006 Jul 31
1
Grouping arrays in the View
I remember reading something awhile back about an easy way to work with object arrays in views. Say I want to arrange 20 images objects in rows of 3. I have a collection of @users, where each user has a user.thumbnail_url image. Is there some way to split these up so that they can be easily parsed in rows of three? Thanks, Nathan -------------- next part -------------- An HTML
2006 Jun 18
2
convert timespan to verbose description
Hi, I always see RoR pages showing the elapsed time like that ''Published 3 days, 23 hour and 5 minutes ago'' ''Published less than 3 minutes ago'' I guess this conversion can be done using a Rails function, however I can''t find it. Does somebody know its name?? Thanks a lot Peter
2006 Aug 17
4
using time_ago_in_words() in a controller?
I''m getting this error when I try to update a list using ajax after submitting some data: undefined method `time_ago_in_words'' for #<IdeaController:0x3a38ae8> the LOC is this: render_text "<li>" + @params[:idea][:title] + "<br />by " + @params[:idea][:author] + " | " & time_ago_in_words(Time.now) & " ago | " +
2006 May 19
37
OS for rails development: Windows vs. Mac?
Caveat: this is not a discussion about *hosting* a rails app on windows. Anyway...Macs are everywhere you look when researching rails (demo vids, tutorials, and pictures from rails training classes). I''m interested in what the pros to using a Mac for rails development are (besides textmate). Is it more of a cultural thing, a what would 37 signals do thing, is it a unix thing, or
2006 May 27
36
Might be buying a Mac
I might be buying a Mac tomorrow. I checked out the new 13.3in MacBook at the new Apple Store on 5th ave in NYC. I''m torn between the smaller MacBook and the MacBook Pro. We have a pro at work and I''m not that thrilled with the way it feels. I like the keyboard much better on the 13inch. However, I think doing development on that small of a screen could get frustrating. Any
2007 Feb 21
2
date helper bug?
I''ve found an issue when trying to use the time_ago_in_words and distance_of_time_in_words from action view''s date_helper.rb Using SQL Server, I have a datetime column that gets returned as: "2007/02/21 09:54:00". When I pass this to time_ago_in_words (which just passes on to distance_of_time_in_words) it miscalculates the difference as "9 hours" (...um yeah,
2006 May 03
2
Using a helper within another helper?
I am trying to push some view logic into a helper. The thought is that this is a step towards having the business logic in the helper rather than the view. However, I''m essentially wrapping the checks around an eventual call to date_select(). The problem I''m having is that the application complains that it doesn''t know about date_select(). I''m sure (or
2008 Oct 11
1
Re: time_ago_in_words is off by a day
Look at your 1.day.from_now and see if it''s like this: Sun, 12 Oct 2008 02:45:42 UTC +00:00 If you also have the "UTC +00:00", it means that you timezone is the GMT (and I think that it isn''t your real timezone). For example, my timezone is 3 hours after the GMT, so the right timezone would be something like this: Sat Oct 11 23:48:41 -0300 2008 At your
2007 Jul 31
11
helper spec not finding rails core helpers
Hi, My helper specs were going ok until I added a call to a rails DateHelper method in one of my helpers http://api.rubyonrails.com/classes/ActionView/Helpers/ DateHelper.html#M000574 The helper runs fine from my view templates, just dies in the spec test. I boiled my question down to a simple (not too useful) example. I''m not sure what I''m missing. #
2006 Oct 22
3
Date Helpers?
Does anyone have any ideas off the top of there head how to easily construct a date helper as one would see in Rails? Thanks, Michael Gorsuch http://www.styledbits.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20061022/7dda5a52/attachment.html