Sha256: 5aaa8ff4c3f3e4f7249bac18f900670d2fcc2ea861c0aa5021113c2396f908bf

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

TODO

1) Auto-detect current resource instance for member views (non-collection)

    link(:edit)   =>  link(:edit, @post)

  Detect using "self.controller_name.singularize", or use "resource" if InheritedResources is used.

2) [ISSUE:] Implement the problematic one: link(:action, [@parent, @resource])

* Collections detection:

    link(:index)  =>  link(@posts)   =>  link(:index, @posts)   =>  link("Index", @posts)

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

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

* Add support: #link_to_function + #button_to_function: I18n, more?

    js_link(:hello, "alert('Clicked :hello.');")  =>  link_to_function(I18n.t(:hello, ...), "alert('Clicked :hello.');")

* Add support: #link_to_remote + #button_to_remote: I18n, more? Could probably be cleaned up quite a lot.

    ajax_link(...)

* ORM-tests: DataMapper, MongoMapper

* Check Rails 3 compatibility.

NOT SURE:

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
link2-0.1.4 TODO