ubiquo_core: refactor standard template to use ubiquo_table_headerfy
Reported by Priit Tamboom | February 9th, 2010 @ 12:08 PM | in 0.8 (closed)
Currently in my project I needed to create one custom table what didn't fit well with standard one, therefore it was handy to re-factor _standard.html.erb partial to use ubiquo_table_headerfy, so I can use this helper in my custom made table as well. Currently I didn't find tests for core_ubiquo_helpers, so I skipped at the moment. The helper method name is open to change if anyone has better one.
Comments and changes to this ticket
-

Ramon Salvadó February 10th, 2010 @ 09:26 AM
If would be cool if you could add some usage examples of what the helper does on different inputs.
Something we should consider is to make things like this overridable using some kind of convention like looking for existance of certain custom functions and defaulting to the standard one if a custom one is not found. Something like:
controller news
ubiquo_headerfy (this is always called)
-> First look for another function called (for example) ubiquo_news_headerfy. -> If it doesn't exist do the standard thing.This is using this function like an example but this approach would be something similar like we already do with connectors and hooks and could be extended to all the list template logic.
-

Bernat Foj Capell October 16th, 2010 @ 01:50 PM
- → Tag changed from ubiquo_core to patches, ubiquo_core
-

Ramon Salvadó October 25th, 2010 @ 09:29 AM
- → State changed from new to resolved
(from [f9ce9aa728a805534624990a3cec841c8cd32ed8]) standard partial refactored to use helper method [#236 state:resolved] http://github.com/gnuine/ubiquo_core/commit/f9ce9aa728a805534624990...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Ruby on Rails based application framework.
Check the ubiquo website.
Source available from github
Ubiquo plugins can be found at http://github.com/gnuine
Check out the development master (Edge ubiquo):
gem install ubiquo
ubiquo --edge myapp
Creating or reviewing a patch
See the contributor guide.
Creating a feature request
If you want a new feature in Ubiquo it's best to implement it yourself.
Creating a bug report
When creating a bug report, be sure to include as much relevant information as possible. Post the code sample that causes the problem. Preferably, alter the unit tests and show through either changed or added tests how the expected behavior is not occuring.
People watching this ticket
Attachments
Tags
Referenced by
-
#236 ubiquo_core: refactor standard template to use ubiquo_table_headerfy
(from [f9ce9aa728a805534624990a3cec841c8cd32ed8])
standar...