Re: [Rails] rubyXL error - uninitialized constant RubyXL (NameError)

2013-06-29 Thread Simon Macneall
don't you need to require rubygems as well when running from a script? On Sun, 30 Jun 2013 11:30:21 +0800, Muthu Selvan wrote: *sudo gem install rubyXL* -> *EMPTY RESULT * * * *So installed rubyXL with the below command ...* * * Fetching: rubyXL-1.2.10.gem (100%) Successfully instal

[Rails] Re: Template is missing

2013-06-29 Thread Raphael P.
Walter Davis wrote in post #1113937: > Does that file exist at either of the sub-paths indicated, or not? If > not, move it there, or create it there. Check also that you may have a > folder called 'salutations' (plural) and you may have written > salutation/hello in your view or controller (wherev

Re: [Rails] rubyXL error - uninitialized constant RubyXL (NameError)

2013-06-29 Thread Muthu Selvan
*sudo gem install rubyXL* -> *EMPTY RESULT * * * *So installed rubyXL with the below command ...* * * Fetching: rubyXL-1.2.10.gem (100%) Successfully installed rubyXL-1.2.10 1 gem installed *Ruby version :* *$ which ruby* /Users/mselv2/.rvm/rubies/jruby-1.7.4/bin/ruby *Error while running

Re: [Rails] internationalizing a gem: conventions?

2013-06-29 Thread Walter McGinnis
It's probably worth mentioned that this was done in an config.to_prepare block: http://guides.rubyonrails.org/configuring.html On Sat, Jun 29, 2013 at 4:32 PM, Dave Aronson < googlegroups2d...@davearonson.com> wrote: > On Sat, Jun 29, 2013 at 4:00 AM, Walter McGinnis > wrote: > > > In my exper

Re: [Rails] internationalizing a gem: conventions?

2013-06-29 Thread Dave Aronson
On Sat, Jun 29, 2013 at 4:00 AM, Walter McGinnis wrote: > In my experience with Rails 2.3, you need to add your I18n.load_path. This is for 3.2, but since nobody has come forth with an "Oh, yeah, just stick it in lib/$GEMNAME/magic/locales/loadme/whizbang/$LANGUAGE.yml and it'll get slurped righ

Re: [Rails] rubyXL error - uninitialized constant RubyXL (NameError)

2013-06-29 Thread Norbert Melzer
Am Fri, 28 Jun 2013 17:44:29 -0700 (PDT) schrieb Muthu Selvan : > > Hi , > >I am trying to read excel sheet from Ruby so i have installed > RubyXL ( sudo gem install rubyXL ) . > >After installed successfully , I am running with the below source > code , but its giving error > >

Re: [Rails] Template is missing

2013-06-29 Thread Walter Lee Davis
Does that file exist at either of the sub-paths indicated, or not? If not, move it there, or create it there. Check also that you may have a folder called 'salutations' (plural) and you may have written salutation/hello in your view or controller (wherever you called render). Walter On Jun 29,

[Rails] Re: rubyXL error - uninitialized constant RubyXL (NameError)

2013-06-29 Thread Muthu Selvan
Hi All I have tried my best to solve this issue but no luck for me .. Kindly help me to solve this issue , this is seem to be some environmental issue . Thanks , Muthu Selvan SR On Friday, 28 June 2013 17:44:29 UTC-7, Muthu Selvan wrote: > > > Hi , > >I am trying to read excel sheet from

[Rails] Re: Template is missing

2013-06-29 Thread Raphael P.
Template is missing Missing template salutation/hello, application/hello with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in: * "C:/Users/RAPHAEL/hello/app/views" How can I solve this problem ? -- Posted via http://www.ruby-for

[Rails] Verify file is uploaded correctly in s3

2013-06-29 Thread news.anand11
Hi I am using amazon sdk to upload file. Now I want to check that file is uploaded correctly and not corrupted. I have tried etag and compared with checksum created locally. It works as well but some how I have found that sometime etag in not representing correctly. So there is another method by pa

[Rails] has_secure_password: authenticate method

2013-06-29 Thread bayram kuliyev
has_secure_password has a method authenticate to authenticate users using bcrypt. In secure_password.rb file I found the following lines (from github): def authenticate(unencrypted_password) BCrypt::Password.new(password_digest) == unencrypted_password && self end BCrypt::Password.new(pas

Re: [Rails] internationalizing a gem: conventions?

2013-06-29 Thread Walter McGinnis
In my experience with Rails 2.3, you need to add your I18n*.*load_path. Here's my creaky old example: https://github.com/kete/kete_gets_trollied/blob/master/rails/init.rb#L13 On Fri, Jun 28, 2013 at 12:07 PM, Dave Aronson < googlegroups2d...@davearonson.com> wrote: > I need a pinch of help on