Displaying 20 results from an estimated 200 matches similar to: "Announcement: Really simple localization plugin"
2006 Aug 23
11
i18n friendly, plugable Rails Core
In my work with a simple localization plugin, i''m running into a lot of
places in the Rails core, where text and other localization specific
information is hardcoded.
I''ve included some examples in the bottom of this post.
It''s hard for an outsider to know, if the hardcoded values are a result
of inconsistency in code, or "by design". I hope that we can have
2007 Sep 18
0
distance_of_time_in_words hardcoded strings should be separated for easier localization
Hi everybody.
After DHHs talk at RailsConf yesterday, it''s essential that some of
you can rectify this patch for ruby on Rails
Please help me an have a look at
http://dev.rubyonrails.org/ticket/9587
Thanks!
Jesper Rønn-Jensen
blog: www.justaddwater.dk
=====
ActiveRecord::Errors has a placeholder (@@default_error_messages) for
messages that can be overridden.
Just the same way, the
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)
2008 Mar 07
0
How to do a time-stratified case-crossover analysis for air pollution data?
Dear Experts,
I am trying to do a time-stratified case-crossover analysis on air
pollution data and number of myocardial infarctions. In order to avoid
model selection bias, I started with a simple simulation.
I'm still not sure if my simulation is right. But the results I get from
the "ts-case-crossover" are much more variable than those from a glm.
Is this:
a. Due to
2008 Mar 07
0
How to do a time-stratified case-crossover analysis for air pollution data? Unformatted text-version, with an additional note
Dear Experts,
I am trying to do a time-stratified case-crossover analysis on air pollution data and number of myocardial infarctions. In order to avoid model selection bias, I started with a simple simulation.
I'm still not sure if my simulation is right. But the results I get from the "ts-case-crossover" are much more variable than those from a glm.
Is this:
a. Due to the simple
2006 Aug 15
2
Apache & FCGI: Premature end of script headers:
Hi,
I have quite a problem right now. After finish of development I
installed rails with fcgi and apache on my production env. Everything
seems to be configured ok, but once I while I get the famous error
message:
" Premature end of script headers: dispatch.fcgi"
I cant see any generel configuration problem, as sometimes everything is
running fine.
Maybe it is a problem related to
2010 Jul 21
0
cgi_process.rb:22:in `__send__': undefined method `env_table
.htaccess is like this...
AddHandler fcgid-script .fcgi
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ dispatch.cgi [QSA,L] <--- commented
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
if I run....
./dispatch.rb
./../config/environment.rb:35: warning: already initialized constant
MONTHNAMES
2006 Jul 24
3
Creating performance test fixtures from development db? How?
Hi all!
I''m looking into the testing chapter of Agile Web Development With Rails
(2nd ed.).
I want to performance test my app, but I''m too lazy to write fixtures for
performance test.
I''d rather use the data from my development db (because the data is so close
to the production data).
How do I get the data into the test db without writing fixtures?
Could you please
2006 Apr 17
1
Autocompleter to read value from hidden field
I have an autocomplete field with road names (looking up in a database with
approx. 100,000 road names).
To limit the number of roads, i want an extra input field where to put
postal code.
I''m currently using <%= text_field_with_auto_complete %> for the field.
What is the best way in Rails to intercept the Ajax call and send the value
of the postal_code field?
(I guess I could do
2007 Dec 09
0
Windows, Rails2.0, Zlib::BufError or Mongrel crash with rubygems update --system
(this will be a bit off topic, but in my opinion important info for
Windows users)
Hope i get your attention before running "gem update --system" on
win32, as the 0.9.5 version of rubygems caused me some problems
I have done what I could to gather the information and write what
worked for me:
Rails 2.0, gem install, Windows => Mongrel Trouble
2007 Jan 18
8
How can I find out which attribute is screwing up pluralize/singularize?
Hey there :)
I''m creating this app on top of a legacy database, that has a mixture
of auto_inc ids, non-''id'' named pks, non-integer-pks, foreign keys that
end in _code instead of _id, etc.
I have the model working great in the console, where I can create any
modeled object and reference other objects without issues.
However, I''m running into problems with
2006 Jan 16
8
[newbie] This Month / Next Month / The One After That
What I want to do is simple.
I''d like code that prints out the name of this month (January) the next
month (February) and the one after that (March)
I''ve been able to print this month:
<% t = Time.now %>
<%= t.strftime(" This Month is: %B") %>
But I can''t figure out how to get the next months to print out!
--
Posted via
2009 May 14
1
replacing default axis labels on a plot
I have 3 columns: flow, month, and monthname, where month is 1-12, and
monthname is name of month. I can't get the plot to replace the 1-12
with monthname using ticks.lab. What am I doing wrong?
plot(flow~factor(month),xlab="Month",ylab="Total Flow per Month",
ylim=c(0,55000), ticks.lab="monthname")
Thanks
Gregory A. Graves
Lead Scientist
REstoration
2008 Sep 23
3
Finding distinct months using find_by_sql
Hello,
I''m wondering if someone might be able to offer me a solution to the
following problem that has so far stumped me.
I''m trying to get the distinct months (and years) from a date field to
display as a list in a view. For example, there might be a number of
records stored with dates in the table ''headlines'':
name date
record1 21-09-2008
record2
2009 Apr 21
2
Date Time format in Ruby
Can anyone give a suggestion so that i can able to format the date as
like this 3th - 5th June 2009
--
Posted via http://www.ruby-forum.com/.
2006 Jun 12
2
Ruby on Rails Copenhagen Meetup
Hi Railers
If you are in the Copenhagen area on the 29th of this month (that''s a
Thursday) Jesper and I would be glad to see you at Caf? Selina in the
central Copenhagen for the first of many Ruby on Rails meetups.
We start at 20:30 hours and have of cause arranged for free beer and
complementary WiFi.
Our goal is to create an inspiring atmosphere where railers (new and
old) can
2006 May 02
16
no one cares about i18n (was [OT]: Asking questions on this list)
Do most others in the community agree with this statement? It seems to me
that i18n is:
1. Actually important to many people
2. Not really the difficult to implement in concept
3. Something that people like to point out about Rails to say it''s not
ready foir "Enterprise"
It seems to be that a big part of Rails is encouraging people to do things
the "Right Way",
2006 Apr 16
2
Possible to implement Textmate key shortcuts in RadRails?
The Rails demo videos is a great showoff on how productive Textmate editor
is. The 15 minute build-a-blog example should be twice as long if there had
been no keyboard shortcuts in Textmate.
Unfortunately, I use windows and thus RadRails. Does anyone know how to
implement the same keyboard shortcut into RadRails?
Sebastian Friedrich made an overview of the keyboard shortcuts:
2006 Feb 05
0
Newbie AJAX validation problem. How do I validate field and color field on error
I want to validate a field via AJAX in my Rails application. If there
is an error, I want to set an error class on the text field and give
it class="error" to color it appropriately in CSS.
I''ve been looking at
<%= observe_field ''fieldname'',
:update => ''another_fieldname'',
:url => {:action =>
2006 Apr 11
10
Ruby on Rails as rapid prototyping tool
[This might be slightly off-topic]
I just posted my thoughts on how we use Rails as rapid prototyping tool in
Capgemini.
http://justaddwater.dk/2006/04/12/rails-prototyping/
Unfortunately I cannot give details as to which clients due to privacy
issues. Just want tho share my thoughts on this and hear if you have
anything to add.
--
Jesper R?nn-Jensen
Capgemini Danmark A/S
Oernegaardsvej 16
DK -