Does the acts-as-readable plugin work for rails 3? The instructions at https://github.com/mbleigh/acts-as-readable results in Plugin not found: ["http://svn.intridea.com/svn/public/acts_as_readable"]
Downloading the source from github and sticking it in vendor/plugin doesn't seem to work, I get: Could not find generator acts_as_readable_migration.
I am doing something wrong or should I look elsewhere?
I forked the plugin to my GitHub account and updated its generators to work with Rails 3, which can be found at https://github.com/tjackiw/acts-as-readable.
After you install it
rails plugin install git://github.com/tjackiw/acts-as-readable.git
then you can do
rails generate acts_as_readable_migration
Have fun!
try script/rails plugin install git://github.com/mbleigh/acts-as-readable.git to install it from that git repo.
Looks like it will install, but uncertain if it "works" given it hasn't been updated since 2008
Related
I'm creating a Rails plugin which uses Mobility gem.
I can see the installer listed when I do
rails generate --help
But then if I run
rails generate mobility:install
I get this totally weird error:
Could not find generator 'mobility:install'. Maybe you meant 'mobility:install', 'binda:install' or 'devise:install'
My guess is that mobility generator isn't located in lib/generators/mobility but in lib/generators/rails/mobility. See the github repository. The issue does appear only on Rails plugin not on Rails application.
Any idea how to overcome this issue?
As you suspected, the problem is the paths used for generators in Mobility. This PR will fix the issue.
I want to install awesome_nested_set in my Rails 3 app. This is a plugin, versus a gem. I've installed gems but never a plugin.
The awesome_nested_set is here: https://github.com/collectiveidea/awesome_nested_set
But that appears to not be Rails 3 friendly, according to several reported issues.
There is a Rails 3 friendly fork here: https://github.com/FreakyDazio/awesome_nested_set
But I'm not sure how to install this? How do I install this plugin in my Rails 3 app?
Thanks
In Rails 3, install a plugin via:
rails plugin install <path to plugin>
So, for this plugin:
rails plugin install git://github.com/FreakyDazio/awesome_nested_set.git
Using just rails plugin will give you additional information.
In Rails 3, the script/foo scripts have been replaced by calling rails directly, so in your case, to install the FreakyDazio fork of awesome_nested_set:
rails plugin install git://github.com/FreakyDazio/awesome_nested_set.git
Rails by default looks in vendor/plugins (which is where rails plugin install will install to) for plugins to load (at which time, the plugin's init.rb file will be run). Here is an article about plugins in Rails 3. You might want to read about the Rails initialization process as well.
I found an example here showing how to install a Rails plugin. Their example shows this:
./script/plugin install calendar_helper
This won't work for me because, confusingly, I don't have anything called plugin in my script directory. All I have is rails:
$ ls script/
rails
So Rails doesn't come with the script you need to install plugins? You need a plugin to install plugins? That doesn't seem very likely. Is something wrong with my Rails project?
You're probably on Rails 3. Replace ./script/plugin with rails plugin.
rails plugin install calendar_helper
But the other problem is plugins, unlike gems, need to be installed with a full path. This was also true in Rails 2.x.
rails plugin install https://github.com/topfunky/calendar_helper.git
You should first input text like gem 'calendar_helper' in your Gemfile, and then run bundle install for rails 3.0
I'm running Windows 7 32 bit. I just installed Ruby 1.9.2 and Rails 3.0.1. I set up my rails sample application and everything seems to be working fine. I tried installing the restful_authentication plugin from github and it's been a nightmare. I'm executing the following command:
rails plugin install -force git://github.com/technoweenie/restful-authentication.git
...and i get the get the following error:
Cannot install using checkout because this project is not under subversion.
How do i get around this? I've installed both the SVN and Git command-line clients and they're in my PATH.
Yep, you should not use this plugin with Rails 3. Use devise.
Get a linux or a mac for Rails development.
According to the installation notes you need to simply clone the project to the plugins dir.
git clone git://github.com/technoweenie/restful-authentication.git restful_authentication
As others have suggested, devise is a better option.
i am having this annoying problem when deploying rails plugins. I can install them by downloading the source and putting it in the vendor/plugins directory, But i want to do it with the easy command line. I am trying to install the will_paginate plugin.
tried this command ruby script/plugin install git://github.com/mislav/will_paginate.git
that doesn't work, i tried this one as well ruby script/plugin install http://github.com/mislav/will_paginate.git
the problem i am getting is, There is no error while installing the plugin from command line, but rather there is an empty folder created inside vendor/plugins directory by the name of will_paginate, And the folder is empty. Any solutions for this?
thanks.
It sounds like you don't have git installed. Are you using Windows? If so, you'll have to download and configure a command-line git client.
If you do have git installed and configured correctly, alternatively, from your root rails directory you could try:
git clone git://github.com/mislav/will_paginate.git vendor/plugins/will_paginate
ruby script/plugin install git://github.com/mislav/will_paginate.git
That should work for you. For reference, here is the blog post from github. According to that post, this was supported beginning in Rails 2.0.2, so you'll need to be using at least that version of Rails and have git installed locally.