You are currently browsing the tag archive for the ‘Plugin’ tag.
On my new project we had the problem that some specs failed when ran on their own, and some specs produces strange output (like “use object_id”), so I build a helper that runs each test on its own and could pinpoint the problem.
rake spec:one_by_one
it is now included in the single test rails plugin
Simple meta tag rules (from google webmaster tools):
- do not add useless meta tags
- add site-wide-unique meta tags
- add max 10 keywords
- in doubt add no meta tags, search engines will grab something
Obey or be penalized.
For simplicity use: MetaOnRails Rails plugin
Usage
#in your head (no not that head...) =display_meta #in your views, add unique keywords/description that matter set_meta( :keywords=> [@movie.category, @movie.genre,@user.name]*' ', :description=>@movie.description )
Output
<meta name="description" content="my description" /> <meta name="keywords" content="my,keyword" />
Easy handling of latitude/longitude information, build on top of acts_as_mappable (aka geokit).
has_a_location Installation instructions
Usage
class User < ActiveRecord::Base has_a_location end @user.location = [11.101,22.121]# latitude , longitude @user.in_radius(100) #find in 100 miles radius #this location will not be stored since it is the "default location" @user.location = [0,0] show_map if @user.location
- show a users blog entries
- show feed of a organization
- …
Acts_as_feed allows your models to either simply have a feed or to act as a feed.
- Update feed if feed is old (last feed update > 15 minutes)
- Update feed if url has changed
- Support http://url and url
- Full test coverage
Install
sudo gem install rss-client script/plugin install git://github.com/grosser/acts_as_feed.git
Usage: see README
I just pushed my latest changes and additions for the old asser_invalid_attributes to github.
- create single valid record
- edge-case records without fixtures
- valid attributes to test a post or fill a form
Install
script/plugin install git://github.com/grosser/valid_attributes.git Usage
- set of valid attributes:
valid_attributes User - a valid Record(new):
valid User - a valid saved Record:
create_valid User - an edge-case User:
valid User, :name=>’oh noo it is too long’
