Sha256: c9c0a78bfc26a3f07615aa2275b582a87a321dcc50573743eae6e8e8e4e07395

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 KB

Contents

TODO

* [COMPAT:] Fix compatibility with rubinius and jruby:

    RuntimeError: test_#link2_attrbutes_for:_should_generate_Link2-specific_DOM_classes_reflecting_on_action,_resource_class,_and_resource_id_-_if_given is already defined in BrainTest

    Reason: link2 is symlinked from the bundled rails dummy project - tries to declare same methods twice.

* [COMPAT:] Check Rails 3 compatibility.

* [BUG:] link "+", @post failed

* [BUG:] XSS-issue with labels. (NOTE: Needs more details when this happen, could not reproduce in integration test)

* [FEATURE:] Fix action mapping procs to handle named scopes. Should work, but do not for some reason. =/

* [FEATURE:] Fix action mapping procs to receive session, params, etc in a options hash. My mocking/stubbing don't want to work. ='(

* [TEST:] Integration tests for namespaced controllers/models

* [DESIGN:] Link2::Brain#link_to_args should maybe be split into multiple methods when API is settled.

* [DESIGN:] Merge #label_and_url_for_resource and #url_for_args

* [ENHANCEMENT:] Check with Rails routes (RouteSet) if current action is a :member or :collection:

    link(:show)   =>  link(:show, @post)
    link(:index)  =>  link(:index, Post)

NOT SURE:

* [TEST:] ORM-tests: DataMapper, MongoMapper

* Make Link2 parse label and title-attribute for the link based on configuration: Link2.label_method = :to_s, Link2.attr_methods = {:title => :description}

* This works:
    link_to x, :terms   =>  link_to x, terms_path

  So maybe this should work the same?:
   link :terms   =>  link :terms, terms_pat  ( <=>  link :terms, :terms )

  The middle part (auto-detect route for :fraggle before resource :fraggle) maybe too abstract DSL, not sure.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
link2-0.1.11 TODO