Coder Social home page Coder Social logo

table_helper's People

Contributors

obrie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

table_helper's Issues

Question about footer

closer opened this issue

Hello,

I want to insert paging in TFOOT tag. Now I using following code:

@@@
footer.cell ’paging’, "

#{will_paginate @messages, :previous_label => ’<’, :next_label => ’>’}
", {:colspan => "6"}
@@@

but I think that it is not good style.

How about create additional property ’content’ and use this way:

@@@
footer.content = "

#{will_paginate @messages, :previous_label => ’<’, :next_label => ’>’}
";
@@@

ant that code will generate following markup:

@@@
...

...
... @@@

Or may be you known other way?

Thanks

original LH ticket

This ticket has 0 attachment(s).

uninitialized constant TableHelper::BlankSlate in Rails 3 Beta3

closer opened this issue

Hello,

I see error message "uninitialized constant TableHelper::BlankSlate" in Rails 3 Beta3 environment. In Rails 3 the "builder" plug-in was moved from "activesupport" to separated gem therefore need to include it to "row.rb" file.

@@@
require ’table_helper/cell’

Workaround for Rails 3

if Rails::VERSION::MAJOR >= 3
require ’builder’
end

module TableHelper
...
@@@

original LH ticket

This ticket has 0 attachment(s).

ActiveRecord::MissingAttributeError: missing attribute: annotation

closer opened this issue

Hello,

I catched following exception:

@@@
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body_row.rb:30:in send&rsquo; /Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body_row.rb:30:ininitialize’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body_row.rb:28:in each&rsquo; /Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body_row.rb:28:ininitialize’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:92:in new&rsquo; /Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:92:inbuild_row’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:81:in build&rsquo; /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1907:ineach_with_index’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:80:in each&rsquo; /Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:80:ineach_with_index’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:80:in build&rsquo; /Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/collection_table.rb:41:inbuild’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper.rb:173:in collection_table&rsquo; ./test/unit/post_test.rb:12:intest_wrong_annotation_column’
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in __send__&rsquo; /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:inrun’

@@@

because I excluded ’annotation’ column from SQL query.

You can reproduce error using attached file (run one unit-test).

Can you fix it?

Thanks

P.S.
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
Rails 2.2.2
MAC OS 1.5.4

original LH ticket

This ticket has 1 attachment(s).

Empty table hasn't namespace perfixs

closer opened this issue

Hello,

If a table is empty then "class" attributes for cells haven’t namespace perfixs and browser can’t apply CSS styles for these cells.

I see to ways how to fix it problem:

  1. add option for enable/disable namespace functionality
  2. add option for set default namespace

I think the second way is better because if I set empty default namespace I can remove namespace from "class" attributes.

Can you implement it?

original LH ticket

This ticket has 0 attachment(s).

CSS selector style for cell

closer opened this issue

Hello,

For example for table "project" with field "created_at" will be generated the following CSS selector "project-created_at". I think that selector "project-created-at" (underline replaced to minus) see more pretty.

Can you fix it?

Thanks

original LH ticket

This ticket has 0 attachment(s).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.