gavinmorrice

gavinmorrice

20p

10 comments posted · 0 followers · following 0

15 years ago @ Welcome - Ruby On Rail... - Managing your log file... · 0 replies · +1 points

Jules - I don't have any plans to package this as a gem or a plugin.

I'd be more inclined to create a gem rather than a plugin as plugins are being phased out of rails.

Feel free to give it a go yourself though, writing a gem is really not tough at all:
http://buzaz.com/index.php/2010/01/03/how-to-buil...

15 years ago @ Welcome - Ruby On Rail... - Playing MP3\'s On Your... · 0 replies · +1 points

Hi Lauren

Sorry - that was part of an update I added yesterday.

I used try() instead of respond_to()

(weekend error)

Please try again now and if you have any more problems open a ticket on Github

:)

15 years ago @ Welcome - Ruby On Rail... - Writing A Rails Applic... · 4 replies · +3 points

@wes:

This tutorial was written for an older version of rails.

You'll probably have to add the following to your routes.rb file:

(Rails 2.x)
map.resources :posts

(Rails 3.x)
resources :posts

The page should be available at:
http://localhost:3000/posts

To check out the routes and urls in your app, run "rake routes" from your console.

Hope that helps?

15 years ago @ Welcome - Ruby On Rail... - Adding Text or Templat... · 0 replies · +1 points

Joakim,

I usually use something like DatabaseCleaner https://github.com/bmabey/database_cleaner if I need a "clean slate" in tests.

Otherwise, I generally don't find this a problem.

Could you give an example of the unexpected behaviour?

15 years ago @ Welcome - Ruby On Rail... - DRYer, neater filters ... · 0 replies · +1 points

Thanks Jack - that's very encouraging!

I have a little more free time now so should be able to share more tips very soon...

Gavin

15 years ago @ Welcome - Ruby On Rail... - Playing MP3\'s On Your... · 1 reply · +2 points

I realised there was a bug in the latest version of this plugin - this has now been corrected

Please take a pull from GitHub and try again
http://github.com/GavinM/mp3_player

15 years ago @ Welcome - Ruby On Rail... - Playing MP3\'s On Your... · 0 replies · +1 points

Hi there!

Jquery is not required to use the plugin.

Perhaps you could tell me a little more about your environment? Which version of Rails are you using?

16 years ago @ Welcome - Ruby On Rail... - Freezing Your Rails Ap... · 0 replies · +1 points

Russell,
I had a quick look into the source of adzap-ar_mailer, it's quite unusual.
Usually when creating a gem, plugin or even adding modules to your /lib directory the convention is to name the main library file after the main module. For example:

lib/my_module.rb would define: module MyModule

The :lib option for Rails::Configuration#gem is used when the gem name is not the same as the main library file name. For example, "mislav-will_paginate"'s main lib is called lib/will_paginate.rb so when using this gem you'd also specify :lib => "will_paginate".

"adzap-ar_mailer" doesn't follow this convention so, without looking into it further I couldn't say if the :lib option should be different. No reason to doubt the gem's author though.

I am able to unpack this gem without any errors with the following configuration:
config.gem "adzap-ar_mailer", :lib => "action_mailer/ar_mailer", :version => ">=1.2.5"

I hope that helps?

16 years ago @ Welcome - Ruby On Rail... - Handy Rake Tasks - Rub... · 0 replies · +1 points

test comment

17 years ago @ Thinker's Playground - An Introduction To Awa... · 0 replies · +1 points

This is a comment