Thank you guys.
Bill, you helped me a lot. That was exactly what I needed to hear.
Well, I came here once again just to share this article that I found that
answers my questions too. In case someone have the same question.
Is there a Gem that can be utilized for displaying postal addresses in
the format specific to their destination country or region?
Basically, a Gem that programatically does what this site advises?
http://www.bitboost.com/ref/international-address-formats.html
Anything similar?
Thanks!
--
You
On Tue, Jul 20, 2010 at 1:31 PM, Steve Root ukr...@gmail.com wrote:
If I save that to a regular string I get what looks correct to me:
2010-07-20 11:49:19
but saved in the entrycreated column it outputs as: Sat Jan 01
11:49:19 UTC 2000
How are you trying to save this? As a string?
bird =
[2010-07-21 11:35:18] ERROR NoMethodError: private method `gsub!'
called for #Class:0x47a8e38
C:/Applns/Ruby187/lib/ruby/1.8/webrick/htmlutils.rb:16:in
`escape'
C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpresponse.rb:232:in
`set_error'
Write the code here pleZse
On Wed, Jul 21, 2010 at 12:09 PM, Sony Thomas sony.thom...@wipro.com wrote:
[2010-07-21 11:35:18] ERROR NoMethodError: private method `gsub!'
called for #Class:0x47a8e38
C:/Applns/Ruby187/lib/ruby/1.8/webrick/htmlutils.rb:16:in
`escape'
On Jul 20, 9:31 pm, Steve Root ukr...@gmail.com wrote:
If I save that to a regular string I get what looks correct to me:
2010-07-20 11:49:19
but saved in the entrycreated column it outputs as: Sat Jan 01
11:49:19 UTC 2000
Is you entrycreated column a time column ? Time columns only save
On 21 Jul 2010, at 01:56, Abder-Rahman Ali wrote:
In the Head First Rails book, it mentions that h in %=h...% is a
helper method.
Can someone describe what that means? And, when should I use %=h...%?
Is it when I want the result to be displayed on my view for example?
h is short for
Just try to http://localhost:3000/; after starting the webrick server.
:-(
-Original Message-
From: rubyonrails-talk@googlegroups.com
[mailto:rubyonrails-t...@googlegroups.com] On Behalf Of kannav rajeev
Sent: Wednesday, July 21, 2010 12:37 PM
To: rubyonrails-talk@googlegroups.com
sorry i don't think these lines given below are help full to find out error
run ruby script/server -t
Goto Yours development log file copy all the text and paste all text
of that file here
--
Thanks:
Rajeev sharma
--
You received this message because you are subscribed to the Google Groups
I got invalid option for -t
Please check below
ruby script/server -t
= Booting WEBrick...
server: invalid option: -t
= Rails 2.2.3 application started on http://0.0.0.0:3000
= Ctrl-C to shutdown server; call with --help for options
[2010-07-21 12:43:28] INFO WEBrick 1.3.1
[2010-07-21 12:43:28]
Hello,
My name is Esen Sagynov. I am a developer and a project manager at
CUBRID Database Development Team. First, let me briefly introduce
CUBRID. It is an free open source relational database management
system highly optimized for Web applications (http://www.cubrid.org).
We have developed the
One more point like I have tried to configure my DB in database.yml.
It was
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
I changed to
development:
adapter: mysql
database: library_development
username: root
password: *
host:
its yours first application on rails ?
On Wed, Jul 21, 2010 at 1:01 PM, sony.thom...@wipro.com wrote:
One more point like I have tried to configure my DB in database.yml.
It was
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
I changed to
http://github.com/cainlevy/snail may be a start
On Jul 20, 11:14 pm, nosretep playersp...@gmail.com wrote:
Is there a Gem that can be utilized for displaying postal addresses in
the format specific to their destination country or region?
Basically, a Gem that programatically does what this
render :js is something that can be used in place of the render :update.
Which means, the request type should be XHR and not HTTP... in simple
words, the render :js will only work for Ajax requests.
If you want something of this sort for the normal HTTP requests... it
can be achieved by
Marc Byrd wrote:
CACHE.stats[:pid]
m
ah thanks Marc - with my version it's actually CACHE.stats[pid] but
you put me on the right track :) cheers!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
Frederick Cheung wrote:
On Jul 20, 3:57�pm, Andy Joel li...@ruby-forum.com wrote:
test_setup does get invoked, so the file is being processed. I am
guessing that somewhere there is another setup method that takes
priority, but where would it be, and why does it take priority over this
one?
Frederick Cheung wrote:
On 21 Jul 2010, at 01:56, Abder-Rahman Ali wrote:
In the Head First Rails book, it mentions that h in %=h...% is a
helper method.
Can someone describe what that means? And, when should I use %=h...%?
Is it when I want the result to be displayed on my view for
On Jul 21, 9:37 am, Abder-Rahman Ali li...@ruby-forum.com wrote:
Fred, can you just clarify?
- html_escape
http://api.rubyonrails.org/classes/ERB/Util.html#M000138
- XSS attacks
that's a huge topic - http://lmgtfy.com/?q=XSS+attacks
Fred
--
You received this message because you are
S
:-)
-Original Message-
From: rubyonrails-talk@googlegroups.com
[mailto:rubyonrails-t...@googlegroups.com] On Behalf Of kannav rajeev
Sent: Wednesday, July 21, 2010 1:05 PM
To: rubyonrails-talk@googlegroups.com
Subject: Re: [Rails] Please help -- Getting error ERROR NoMethodError:
Frederick Cheung wrote:
On Jul 21, 9:37�am, Abder-Rahman Ali li...@ruby-forum.com wrote:
Fred, can you just clarify?
- html_escape
http://api.rubyonrails.org/classes/ERB/Util.html#M000138
- XSS attacks
that's a huge topic - http://lmgtfy.com/?q=XSS+attacks
Fred
Thanks Fred.
--
Never mind. Got it working. I should pay more attention to the
documentation. Sorry to waste your time.
On Jul 20, 8:10 pm, pepe p...@betterrpg.com wrote:
I have an edit page that generates a few input fields I organized in a
table, like so:
tr
tdDriver License/td
td
That didn't quite work for me, but I have made it work using concat:
def search_form
form_tag do
concat (
text_field_tag( :name ) +
text_field_tag( :lastname )
)
end
On May 26, 5:41 am, Pablo Gonzalez li...@ruby-forum.com wrote:
Ball, Donald A Jr (Library) wrote:
The proper
Hi,
I would like to ask if there is a plugin compatible with
new Google Maps Api 3.
I would like to use api 3 instead of 2 as it has better geocoding and
reverse geocoding capabilities.
Thank you in advance
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
Hi Jeffrey,
I kept the folowing configuration only:
config.cache_store = :mem_cache_store
and it works.
But now i want to try other way that is creating an instance like this:
memcache_options = {
:compression = true,
:debug = false,
:namespace = mem-#{RAILS_ENV},
:readonly = false,
Rails v2.3.8; Ruby v1.8.7
When sending a plain text email using ActionMailer, the email contains
= signs at the end of long lines.
This is a problem as I'm including a link which is bound to break over
more than one line and so the user will not be able to cut and past it
into a browser.
Can
i perform a rake task with a cron, in this task i have 2 problems:
-i using a constant name setting in my config/environment.rb, when i try
to run the rake job on the environment developer the constant is read
an the job works fine, but when i try on the environment production
the constant seem
Hi Aaron,
I'd be interested in hearing more about your idea.
I'm currently employed as the lead developer for ShopKeep.com, a SaaS
startup based in NYC. I telecommute from Fort Worth, Texas. The
business side of my current situation isn't shaping up as I'd
envisioned and so I've started
Hello,
In my rails application.html.erb, I have in javascript, an ajax post
call defined in a dom element's click method. This ajax call works fine
whenever I'm at a view that is a standard render. However, whenever I'm
at anything that is rendered using a rails partial, I get a 405 method
not
Sur Max wrote:
render :js is something that can be used in place of the render :update.
Which means, the request type should be XHR and not HTTP... in simple
words, the render :js will only work for Ajax requests.
If you want something of this sort for the normal HTTP requests... it
can
Tyler wrote:
That didn't quite work for me, but I have made it work using concat:
def search_form
form_tag do
concat (
text_field_tag( :name ) +
text_field_tag( :lastname )
)
end
You shouldn't need the concat. It's not actually doing anything.
Best,
--
Marnen
Bill -
Can you email me at aprice @ ready set wow .com (no spacses, obviously)
so we can talk? I can't find any contact info from you here.
Thanks,
Aaron
Bill Walton wrote:
Hi Aaron,
I'd be interested in hearing more about your idea.
I'm currently employed as the lead developer for
On Jul 21, 1:16 pm, Branden Tanga li...@ruby-forum.com wrote:
Hello,
In my rails application.html.erb, I have in javascript, an ajax post
call defined in a dom element's click method. This ajax call works fine
whenever I'm at a view that is a standard render. However, whenever I'm
at
On 21 July, 08:08, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jul 20, 9:31 pm, Steve Root ukr...@gmail.com wrote:
If I save that to a regular string I get what looks correct to me:
2010-07-20 11:49:19
but saved in the entrycreated column it outputs as: Sat Jan 01
11:49:19 UTC
I notice that when I run rake doc:app, that the named_scope declarations
I have in my models aren't being included in the documentation.
Is there a way to get named_scopes in the rdocs?
Thanks,
Will
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
You need to use Ajax there.
Instead of form_for you will need to use form_remote_for.
regards,
Sur
http://crimson9.com
Mamadou Touré wrote:
Sur Max wrote:
render :js is something that can be used in place of the render :update.
Which means, the request type should be XHR and not HTTP...
Hi,
I have a model Theme which has_and_belongs_to_many Lessons.
I need to get the (db) id of the lessons through the theme.
For instance, if in irb I write something like this :
test = Theme.find(:first)
puts test.lessons.first.id
I get the ID of test (the theme) and not of the lesson.
Do you
Maybe they have the same id :-), checkout your database and see if they have
the same id
2010/7/21 Lily ^_^ li...@ruby-forum.com
Hi,
I have a model Theme which has_and_belongs_to_many Lessons.
I need to get the (db) id of the lessons through the theme.
For instance, if in irb I write
Dave Aronson wrote:
On Tue, Jul 20, 2010 at 16:22, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
Why do you think Dave's sensibilities were offended? �There's nothing
in his post as I read it that would support that interpretation.
Thank you, my knight in shining armor! ;-)
You're
Sergio Sergio wrote:
Maybe they have the same id :-), checkout your database and see if they
have
the same id
2010/7/21 Lily ^_^ li...@ruby-forum.com
Already checked :)
The parent has ID 3 in its table.
The lesson has ID 1 in its table.
And thetheme.thelesson.id gives 3...
Well actually
How would I produce an HTML flash message on the screen if I call an
action.csv in the page?
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this
Rails v2.3.8; Ruby v1.8.7
When sending a plain text email using ActionMailer, the email contains
= signs at the end of long lines.
This is a problem as I'm including a link which is bound to break over
more than one line and so the user will not be able to cut and past it
into a browser.
then, the lesson.id is incorrect but the lesson.title is ok ?... does your
HABTM table contains just the theme_id and lesson_id fields ?
2010/7/21 Lily ^_^ li...@ruby-forum.com
Sergio Sergio wrote:
Maybe they have the same id :-), checkout your database and see if they
have
the same id
On Jul 21, 4:14 pm, Lily ^_^ li...@ruby-forum.com wrote:
Hi,
I have a model Theme which has_and_belongs_to_many Lessons.
I need to get the (db) id of the lessons through the theme.
For instance, if in irb I write something like this :
test = Theme.find(:first)
puts test.lessons.first.id
Frederick Cheung wrote:
On Jul 21, 4:14�pm, Lily ^_^ li...@ruby-forum.com wrote:
I get the ID of test (the theme) and not of the lesson.
Do you know how to get the id of the nested object instead ?
if your join table has an id column weird stuff like this will happen
Fred
Thank you so
I have a development db for my app and wanted to create a new
development db. so, i created a new and changed the config files as
needed. one but i can not do any new migrations. i tried rake db:reset
and rake db:migrate:reset however it gives me the error that a certain
table is not found. I can
Sur Max wrote:
You need to use Ajax there.
Instead of form_for you will need to use form_remote_for.
regards,
Sur
http://crimson9.com
Thanks Sur, it works, but I need one more thing. When I hit the submit
button, this will trigger process that creates the xdp files, but with
this
:)
I would suggest you to read about the Ajax/RJS in general and in Rails.
There are numerous free books/resources available.
For the stuff you just asked, it's like this
It's called indicator, for which most of the world use an animated gif
image for the purpose.
So you need to put an
You are fighting Rails, in my experience not a time effective thing to do.
Why do you want use Rails and not do it the Rails way?
Jeffrey
Quoting Prachi Tripathi li...@ruby-forum.com:
Hi Jeffrey,
I kept the folowing configuration only:
config.cache_store = :mem_cache_store
and it works.
Correct it
%= form_remote_for :some_symbol, :url = the_url_youve_given, :loading
= $('any_uniq_indicator_id').show(), :complete =
$('any_uniq_indicator_id').hide() %
In complete, it should be hide()
regards,
Sur
http://crimson9.com
--
Posted via http://www.ruby-forum.com/.
--
You
2010/7/21 Mamadou Touré li...@ruby-forum.com:
Thanks Sur, it works, but I need one more thing. When I hit the submit
button, this will trigger process that creates the xdp files, but with
this change now, the page is too silent during the process (the mouse
cursor does not move, everything is
Even IDE s have problem with named_scopes. I don't think RDoc can recognize
it. Besides looking like a train wreck, that's one of the reason I don't
like named_scopes.
On Wed, Jul 21, 2010 at 7:23 AM, Will Clark li...@ruby-forum.com wrote:
I notice that when I run rake doc:app, that the
My sincerest apologies to the list for this faux paux. Just one more
example of the value of a non-interrupt-able schedule ;-)
Best regards,
Bill
On Wed, Jul 21, 2010 at 7:14 AM, Bill Walton bwalton...@gmail.com wrote:
Hi Aaron,
I'd be interested in hearing more about your idea.
I'm
Bala Paranj wrote:
Even IDE s have problem with named_scopes.
Who cares about IDEs? :) No IDE that I'm aware of really works well
with Ruby's dynamic features. IMHO, that's a reason to not use an IDE
for Ruby.
I don't think RDoc can
recognize
it.
I think you're right, but it wouldn't
On Wed, Jul 21, 2010 at 1:21 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
I think you're right, but it wouldn't be hard to patch RDoc to recognize
it if you want to.
Code, as opposed to unsubstantiated assertions, would be much more credible.
Bill
--
You received this message because
I'm working on a project that needs a picture taken from an iPhone to
be sent to a Rails back end, which uses paperclip.
I'm trying to send it via http post but i get the following error:
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it
.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
Sur Max wrote:
Correct it
%= form_remote_for :some_symbol, :url = the_url_youve_given, :loading
= $('any_uniq_indicator_id').show(), :complete =
$('any_uniq_indicator_id').hide() %
In complete, it should be hide()
regards,
Sur
http://crimson9.com
Thanks a lot Sur, it works
On 21 July 2010 01:10, pepe p...@betterrpg.com wrote:
I have an edit page that generates a few input fields I organized in a
table, like so:
tr
tdDriver License/td
td
input
id=person_accounts_attributes_0_account_documents_attributes_1_number
solved
On Jul 21, 10:31 am, Me chabg...@gmail.com wrote:
How would I produce an HTML flash message on the screen if I call an
action.csv in the page?
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to
You are welcome
I am glad it helped you :)
Vous êtes les bienvenus
Je suis content que vous avez aidé :)
regards,
Sur
http://crimson9.com
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To
Sur Max wrote:
You are welcome
I am glad it helped you :)
Vous êtes les bienvenus
Je suis content que vous avez aidé :)
regards,
Sur
http://crimson9.com
Merci ;-))
We say Je suis content de vous avoir aidé instead of 'que vous avez
aidé'
anyway, your french is good ;-))
--
On Jul 20, 11:00 am, Eduard Martini eduard.mart...@gmail.com wrote:
in authors model:
has_one: city_of_birth, :table = cities
has_one :city_of_death, :table = cities
in authors table:
city_of_birth_id, city_of_death_id
author instance:
@author.city_of_birth
@author.city_of_death
For anyone interested, I emailed Eric Hodel who mentioned that it is
possible:
===
You'll need ## above your comment like:
# This is the test model
class Test ActiveRecord::Base
##
# Sort all tests by name
named_scope :sort_by_name, :order = name ASC
end
See 'Metaprogrammed Methods'
On Jul 21, 3:07 am, CUBRID kadish...@gmail.com wrote:
Hello,
My name is Esen Sagynov. I am a developer and a project manager at
CUBRID Database Development Team. First, let me briefly introduce
CUBRID. It is an free open source relational database management
system highly optimized for Web
I have made some progress on this.
I am running my rails apps as a mongrel cluster behind an
apache server with an Apache reverse proxy set up. This has
been just fine until very recently.
If I go directly to the mongrel server via http://localhost:8001
everything is fine. It is when I go to
Bill Walton wrote:
On Wed, Jul 21, 2010 at 1:21 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
I think you're right, but it wouldn't be hard to patch RDoc to recognize
it if you want to.
Code, as opposed to unsubstantiated assertions, would be much more
credible.
The OP's problem
On Wed, Jul 21, 2010 at 3:40 PM, Tom Trebisky t...@mmto.org wrote:
If I go directly to the mongrel server via http://localhost:8001
everything is fine. It is when I go to the apache public URL
that my pages do not render. Apparently apache is setting the
Content-Type to text/plain and this
On Wed, Jul 21, 2010 at 04:00:11PM -0700, Hassan Schroeder wrote:
On Wed, Jul 21, 2010 at 3:40 PM, Tom Trebisky t...@mmto.org wrote:
If I go directly to the mongrel server via http://localhost:8001
everything is fine. ?It is when I go to the apache public URL
that my pages do not render.
On Wed, Jul 21, 2010 at 4:27 PM, Tom Trebisky t...@mmto.org wrote:
I use telnet localhost 8001 then type GET / HTTP/1.1 followed
by two returns and then I get the server response.
I'd suggest using Firebug for a more realistic environment (sending
Accept headers, etc. with the request) but
On Wed, Jul 21, 2010 at 04:42:24PM -0700, Hassan Schroeder wrote:
I'd suggest using Firebug for a more realistic environment (sending
Accept headers, etc. with the request) but regardless --
What version of Ruby and Mongrel are you using?
Ruby is version 1.8.6
Rails is 2.3.5
However, this
Brittain wrote:
Or better yet, a named route? Tried lots of searches and ugly hacks ...
Thanks in advance.
Hi! here's one way to do it:
ActionController::Integration::Session.new.url_for(:host = ,
:controller = , :action = )
cheers
--
Posted via http://www.ruby-forum.com/.
--
You
On Wed, Jul 21, 2010 at 04:42:24PM -0700, Hassan Schroeder wrote:
What version of Ruby and Mongrel are you using?
Ruby is version 1.8.6
Rails is 2.3.5
Mongrel is 1.1.5
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
On Wed, Jul 21, 2010 at 5:00 PM, Tom Trebisky t...@mmto.org wrote:
However, this application was built long ago, probably with rails 1.2.3
and may be inheriting old behaviors.
The only rails now installed on my server though is 2.3.5
Are you absolutely sure the old version of rails isn't in
On Wed, Jul 21, 2010 at 05:27:54PM -0700, Hassan Schroeder wrote:
Are you absolutely sure the old version of rails isn't in the app's
vendor directory?
At this point, there aren't many things I am absolutely sure of. :-)
What's in /vendor, /vendor/gems and /vendor/plugins ?
My application
On Wed, Jul 21, 2010 at 6:02 PM, Tom Trebisky t...@mmto.org wrote:
At this point, there aren't many things I am absolutely sure of. :-)
:-)
The old rails versions used to be here also,
but were deleted months ago to avoid mischief and confusion.
Is there a line in config/environment.rb that
On Wed, Jul 21, 2010 at 06:20:45PM -0700, Hassan Schroeder wrote:
Is there a line in config/environment.rb that starts with
RAILS_GEM_VERSION =
If so, what is it?
It is commented out and looks exactly like this:
#RAILS_GEM_VERSION = '1.2.3' unless defined? RAILS_GEM_VERSION
As I remember
On Wed, Jul 21, 2010 at 6:41 PM, Tom Trebisky t...@mmto.org wrote:
(~) cholla $ gem list --local
Nothing's really jumping out at me from that list...
I have this growing feeling that I need to start from scratch
with 2.3.5 and hand migrate my application.
and having been there -- yeah,
Hassan Schroeder wrote:
On Wed, Jul 21, 2010 at 6:41 PM, Tom Trebisky t...@mmto.org wrote:
(~) cholla $ gem list --local
Nothing's really jumping out at me from that list...
...except for the fact that you've still got the old Rails gems you
claim to have deleted.
Go to the root
Looks like a great start. Thank you!
On Jul 21, 3:38 am, Gilbo m...@xlcrs.com wrote:
http://github.com/cainlevy/snailmay be a start
On Jul 20, 11:14 pm, nosretep playersp...@gmail.com wrote:
Is there a Gem that can be utilized for displaying postal addresses in
the format specific to
Hi All,
I'm getting the following error in my production.log when I try to
upload a file from MAC FF. On rest of the browsers file uploading is
working fine.
Rendering
/home5/folder_namete/Portfolio/application_name/public/404.html (404 Not
Found)
/!\ FAILSAFE /!\ Wed Jul 21 07:55:45 -0600 2010
use instant rails if possible go back on ruby on rails installation again
On Wed, Jul 21, 2010 at 2:27 PM, sony.thom...@wipro.com wrote:
S
:-)
-Original Message-
From: rubyonrails-talk@googlegroups.com
[mailto:rubyonrails-t...@googlegroups.com] On Behalf Of kannav rajeev
Sent:
i have created an appliation to show the pie chart in pdf, now its
showing properly, but the thing is that its not showing the labels
correctly, can anyone help me, pdf of tht ia attached with this.
also i had a pdf.prawn file with the code as below
pdf.image
Frederick Cheung wrote:
On Jul 21, 1:16�pm, Branden Tanga li...@ruby-forum.com wrote:
Does doing an ajax request from a rails partial really cause a same
origin policy violation? If so, why?
if you try and break the same origin policy you shouldn't get a 405
error - the request just doesn't
My app works fine in development on my laptop but in production on my
server I get We're sorry, but something went wrong. We've been notified
about this issue and we'll take a look at it shortly.
I am using Rails 3, Ruby 1.8.7, Apache and passenger 2.2.15
I get the welcome aboard page in
85 matches
Mail list logo