Skip to content

Commit

Permalink
Updated readme and gemspec for 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffd123 committed Oct 9, 2011
1 parent f6b680d commit fbe8537
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions README.rdoc
Expand Up @@ -52,7 +52,7 @@ disallows any access, so if you are getting authorisation errors you have not ov
Cancan also needs access to a method called current_user in the controllers. If you are using devise or similar
this should automatically be available.

If not you will need to define the following in your Applicationcontroller class:
If not you will need to define the following in your ApplicationController class:

class ApplicationController < ActionController::Base
def current_user
Expand All @@ -75,15 +75,28 @@ Your models should now be available on /recipe etc.
Take a look at spec/controllers/amos_controller_spec.rb and test/dummy/features/amos.feature for some examples of accessing
the data and what is returned.

If you want to have the index and dynamic finder results paginated include this at the top of your model:

== Thing to to
User < ActiveRecord::Base
paginate_results

.... your code ....

end

This will use will_paginate to paginate the results.

== Things to to
* More tests against a javascriptMVC application
* Add code to support pagination.

== Change list
=== Edge
In progress

=== 0.0.4
Added test and spec files to gemspec
Added functionality to allow use of rails dynamic finders
Added ability to paginate index and dynamic finder results

=== 0.0.3
Fixed problem with incomplete file list in gemspec.
Expand Down
2 changes: 1 addition & 1 deletion amos.gemspec
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 1.8.1'
s.add_dependency('rails', '~> 3.0')
s.add_dependency('cancan', '>= 1.6.6')

s.add_dependency('will_paginate', '~> 3.0.pre2')

s.add_development_dependency('database_cleaner')
s.add_development_dependency('sqlite3-ruby')
Expand Down

0 comments on commit fbe8537

Please sign in to comment.