Displaying 20 results from an estimated 60000 matches similar to: "gems package and rails folder"
2006 Jul 27
2
accessing a variable inside a plugin
Hello,
I would like to load an Hash in my init.rb plugin file ... than I would
like to use this hash in my module ...
in my init.rb:
@anHash = load From file...
in mymodule:
module Amodule
def myFunction
#@anHash ....
end
end
How can I access to my hash in my plugin module function ?
thanks for this dummy question ;-)
Arnaud
2006 Jul 17
2
error_messages_for ?
Hi,
I can''t list error_messages in my Form ??, and all the formfields are
reset ...(I think my redirect :back clean everything, formfield and
error_messages ...), only my flash[:notice] is ok....
I would like to use the "error_messages_for" tag to add a simple red *
on my textfiled if a problem occurs ...
thanks for help
arnaud
here are the basics steps to check that
2006 Jul 12
7
Does anyone work with iso-8859-1 database ?
hello,
Our database is in is-8859-1, and I want to update some text fields
without success due to some accentuate characters ?? ect ...
In my html page (where the charset is iso-8859-19) my textarea
display the accentuate characters well and when the user post the form
... I thought that I just need to save it .... without success since
ruby map one byte for one character ...
So I
2006 Aug 10
2
save / update and validate
Hi,
It seems that the validate method in ActiveRecord is not call when doing
an myActiveRecordObject.update, right ?
So, I call the save method instead, and the validation happens...
some has an explanation ?
thanks
arnaud
2006 Jun 18
4
share an hash ..
Hello,
How to share an Hash between all objects (model, controller ect ...)
=> I did a static Hash in my model where a static method fill it
basically, this is the code
class Person < ActiveModel
@@anHash.new
def Person.anHelperMethod(aKey)
if anHash.size==0
... load the hash, some SQL to fill the Hash
end
return anHash[aKey]
end
=> The problem,: it always
2006 Aug 09
1
pre-loading sql for testing mode
Hi list,
Instead of using fixture for my test (because I have to many tables, and
it is easier to use my interface to create the data), I prefer to import
all the data from an sql file for each scenario I have ...
how I can do this with rails ?
thanks for help
arnaud
2006 Jun 21
1
about composite primary keys
hello,
what is the strategy you use for composite primary keys ?
I saw the solution proposed by Graham Glass ( ticket 3201) using a
set_composite_key..., but it seems it is not in AR ....(why ?)
thanks for feedback
arnaud
2005 Jun 01
0
problem with rails rails-0.12.1 with Ruby 1.8 on OS X Panther
I have installed ruby, gem and rails.
I am trying to create a new project and I get some error messages.
undefined method `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
Am I missing something?
regards,
Arnaud
PS: detail of the error message I get.
$ ruby /usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/bin/rails
2006 May 24
0
HTMLEntities.decode_entities - problems with output
All,
I am trying to use the HTMLEntities library to translate HTML entities
into their character equivalents so that I can print a text version of
some HTML to a file.
However, I am having trouble understanding how to successfully emit the
converted text as a string without ending up with weird UTF-8 characters
in front of the converted characters.
Referencing the irb session below,
2006 Jan 18
4
Ruby "htmlentities" replacement: code review please!
Hi Railers,
For some time now I''ve been looking for a decent Rails equivalent of PHP''s
"htmlentities" command, because ERB''s html_escape (or more commonly called as
just "h", eg. <%=h @somevariable %> ) just doesn''t go far enough for me.
Back in PHP land, I actually had an extended version of the htmlentities
command to deal with
2008 Jun 24
1
Rails 'rake gems:install' error in windows
I am developing with rails at three platform
mac, windows, linux.
until Rails 2.1, we can describe gem dependencies in environment.rb.
( this one ~
http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies
)
so I write environment.rb like below for using will_paginate
...
config.gem ''capistrano''
config.gem
2006 Apr 17
1
Error with installing rails/gems on ubuntu-dapper
I am getting an error when trying to install rails on dapper. It looks
like it partially installed something. Mainly the issue seems to be
with ''gems''?
I am using:
ruby-1.8.4
gems 0.8.11
Is this bad?
bbrown@england:~/rubygems-0.8.11$ sudo gem install rails
--include-dependencies
Attempting local installation of ''rails''
Local gem file not found: rails*.gem
2010 May 25
1
rake rails:freeze:gems bug in rails 2.3.5?
Hi All,
Not sure if this is a bug or expected behavior.
I''ve pasted my log below, but basically the first time that I run
rake rails:freeze:gems, I get action* all unpacked into app/vendor/
rails.....the 2nd time I run it? I only get vendor/railties/*
Something I''ve done wrong?
Thanks,
Dale
---- log -----
~/cygwin/test$ rake rails:freeze:gems
(in C:/Documents and
2010 Apr 19
0
Gem::FilePermissionError on "rails:freeze:gems" task
My understanding is that the "rails:freeze:gems" task copies the Rails
source into the application''s vendor directory. Which is why I find
the following error surprising and confusing, because the task should
not involve writing to system files or directories:
% rake rails:freeze:gems
(in /Users/tallen/apps/pnc)
Freezing to the gems for Rails 2.3.5
rm -rf vendor/rails
mkdir -p
2007 Sep 12
0
rails & gems 0..9.2 problem
Got a slight issue with a rails plugin I wrote. when I updated to gems
0.9.2, there is some combination of what is happening in rails and gems
that is slightly changing what my array#pack(''c'') it returning. I
haven''t quite dug deep into this yet, but the plugin that I wrote works
with binary data, when I introduce gems 0.9.2 with rails 1.2.3 I get
problems with the
2010 Sep 13
10
Could not find [GEM] locally or in a repository
Hey Guys,
How could I fix the following:
"gem install --no-rdoc --no-ri kete-feedzirra"
ERROR: could not find gem kete-feedzirra locally or in a repository
"gem install --no-rdoc --no-ri libxml-ruby"
ERROR: could not find gem libxml-ruby locally or in a repository
"gem install --no-rdoc --no-ri http_url_validation_improved"
ERROR: could not find gem
2010 Feb 19
1
First time rails install, help with gems/rake
Hello all,
I just did a first time ruby enterprise edition, installed some gems,
and now I''m trying to do a '' sudo ./rake gems:install'' and getting a:
rake aborted!
No Rakefile found
error. Firstly, what directory should I be doing this from?
--
View this message in context:
2011 Nov 22
0
gems problem with ruby on rails application
I am fed up with so many gems problems to running one ruby on rails
application , which use ruby 1.8.7 and rails 2.3.6. so some gems which
related with 2.3.6 not getting now a days. we just change to 2.3.11 in *
(environment.rb). *and when i run* bundle instal*l command, which shows* could
not find gemfile* .already i have install all the gems which using in that
application. Any way to solve
2012 Dec 04
0
Empty test suite is run after every rake task
When I run rake db:migrate or rake -T I get these lines at the end:
Finished in 0.000276 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
My Gemfile is:
source ''http://rubygems.org''
gem ''rack''
gem ''rails'', ''3.0.9''
gem "acl9", ''0.12.0''
gem "fastercsv"#, :version =>
2010 Apr 03
4
Rails can't find it's gems
Hi,
yesterday I attempted to test my Rails app with Ruby 1.9. I installed
all necessary gems, saw that some of them aren''t compatible with 1.9 and
switched back to 1.8. Now my app still thinks it has to go with 1.9 and
shows the following error message when I try to test it.
---------8<---------------------------------------
$ rake test
(in /home/helge/Development/kunsthof)
Missing