Hi!
I want to create a framework fo rails application. It will be a rails application but packed into gem (like a Radiant CMS).
It must work like this:
gem install cmsframework
and then:
cmsframework the_app
After that we have a sceleton of rails app without any controllers etc.. - all controllers loaded from cmsframework gem.
If...
I'm attempting to upgrade the friendly_id gem in a rails project.
I have removed the old gem from the vendor directory, installed the new gem from rubygems.org. When I type:
rake gems:unpack
I get the following response:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/lib...
I'm trying to unpack all the system gems to end up with a standalone Rails directory including all the rails gems and all the system gems.
I'm starting with a bare rails setup; just did a jruby -S rails and a 'generate jdbc'. I then add a config.gem 'jdbc-mysql' to environment.rb and do the jruby -S rake gems:unpack:dependencies.
Afte...
Hi,
I'm currently integrating facebook into my current app and I've succeeded in retrieving the access_token using the following code:
url="#{url}?#{client_id}&#{client_secret}&#{code}&#{redirect_uri}&type=client_cred"
agent = Mechanize.new
page = agent.get(url)
The page object above has a body which contains text something along t...
I like that Rails 3 is so easy to install: gem install rails --pre, and all of the dependencies are automatically installed for you. But, what about uninstalling it? If I just do gem uninstall rails, I still have
actionmailer (3.0.0.beta3)
actionpack (3.0.0.beta3)
activemodel (3.0.0.beta3)
activerecord (3.0.0.beta3)
activeresource (3.0....
I'm looking into building a group work app for my final year project next year. One of the core parts is organising group meetings. I plan to make this as powerful as possible and adding a map can help get rid of excuses such as "I didn't know where it was".
I have been unable to find any simple solutions to embed maps into my Rails app...
Using Ruby on Rails, if I do a
gem help install
a part of it says:
-y, --include-dependencies Unconditionally install the required
dependent gems
[...]
Defaults:
--both --version '>= 0' --rdoc --ri --no-force
--no-test --install-dir c:/ruby/lib/ruby/gems/1.8
but if I do a
gem install -...
I am writing a gem which provides helpers for views. The HTML I want to insert via the helper is complex enough that I'd rather write it in a _partial.html.erb file. How do I get the gem's view path include in the application's load_path?
Note: the only gem I've found that does something like this is Devise. When a view cannot be found,...
If I do sudo gem uninstall rails -v 3.0.0.beta3, it uninstalls rails but leaves the beta3 versions of activerecord, actionmailer, etc. How do I completely uninstall rails 3.0.0.beta3 and all its dependencies automatically? I would like a clean slate for the RC and final releases.
...
deltrem@deltrem-desktop:~/ramaze web/app/blog$ ruby start.rb
I [2010-06-10 14:53:33 $1886] INFO | : activating sequel
I [2010-06-10 14:53:33 $1886] INFO | : Installing sequel
/usr/local/lib/site_ruby/1.8/rubygems/remote_fetcher.rb:124:in `initialize': Permission denied - /home/deltrem/.gem/ruby/1.8/cache/sequel-3.9.0.gem (Errno::EACCES...
I'm trying to get Heroku working with European buckets on amazon s3 webserivces using the aws-s3 gem. It seems I need to install a forked version of the gem to get around the issue. However, with heroku I can only use the .gems file to install gems.
Can I use this .gems file to install forked-gems somehow?
...
I'm on Ubuntu 10.04 x64, ruby version 1.8.7 (2010-01-10 patchlevel 249)
I've read this thread first: http://stackoverflow.com/questions/1332207/uninitialized-constant-mysqlcompatmysqlres-using-mms2r-gem and tried everything that people suggested:
apt-get install libmysqlclient-dev
export ARCHFLAGS="-arch x86_64"; sudo gem install --no...
I have a file "Gemfile" in my Rails project root.
It says source :gemcutter in the very first line.
Do I still need the line? If I'm correct, http://rubygems.org/ is the official source, and Gem Cutter was merged into rubygems.org.
...
I love RVM. I realize that the main use case for it is letting different users switch between different versions of Ruby. But let's say I'm deploying a Rails app to a server and I just want a single version of Ruby running. In particular, I want 1.9.2, which is a breeze to install with RVM but a pain without it. Is there a way that I can...
I have a gem installed in my home directory on a laptop (eg not THE server). I have installed ruby 1.9.1 and also some other gems, notably right_aws - which allows access to s3, etc with ruby.
All works, except there is a bug when I do a query on SimpleDB, and the returned list of items includes an item with any two byte utf-8 characte...
I am actually reading a rails book that is written for rails 2.3.5. I want to test Rails 3 beta as well. Is it possible to have such a setup in my Mac OS leopard?
I have tried with gem list -d rails. There are many versions stored in my mac but I don't know how to use different versions of rails while creating applications using rails c...
I keep getting this error for different gems, the most recent is acts_as_reportable:
no such file to load -- acts_as_reportable
However, I have the following line in my environment.rb:
config.gem 'acts_as_reportable'
And I also ran the following:
>gem install acts_as_reportable
It it output:
>gem install acts_as_reportable
S...
Hi guys. I'm having a problem using ActiveSupport's core extensions on a gem I am developing.
I had it working with AS 2.3.8, but as soon as I wanted to port it to 3b4, the extensions stopped working and my test results are filled with lines such as:
undefined method `blank?' for "something":String
I've included it via gem "activesu...
Hi,
I'm making my first Rails project and I'm using the simple_form gem (version 1.0) with a Rails app (version 2.3.5).
simple_form repository v=1.0
Is there any way to implement the nice options :wrapper_tag, :wrapper_class, :wrapper_error_class ? Or maybe I'm missing something? :-D
Thank you for your advices
Fro_oo
ps : I can't ch...
I know this has been asked multiple times before, but I've tried those things and still am not having any luck.
For the mechanize gem, I keep getting the "Missing these required gems" error when I run db:migrate on my production server.
Here's the full error:
Missing these required gems:
mechanize
You're running:
ruby 1.8.6.111...