FriendlyIdSchema is a micro gem that combines FriendlyId with ActiveRecordSchema
Call #permalink inside a model like this:
class PostFriendlyIdSchema is a micro gem that combines FriendlyId with ActiveRecordSchema
Call #permalink inside a model like this:
class Post| Gem::Specification.new do |s| | |
| s.name = 'paperclip_schema' | |
| s.summary = 'A Ruby Micro Gem for use Paperclip with ActiveRecordSchema and S3.' | |
| s.version = '0.0.2' | |
| s.platform = Gem::Platform::RUBY | |
| s.files = %w(paperclip_schema.rb) | |
| s.require_path = '.' | |
| s.author = 'Maurizio Casimirri' |
| module StaticMapHelper | |
| def static_map_for(location, options = {}) | |
| params = { | |
| :center => [location.lat, location.lng].join(","), | |
| :zoom => 15, | |
| :size => "300x300", | |
| :markers => [location.lat, location.lng].join(","), | |
| :sensor => true | |
| }.merge(options) |