Giter VIP home page Giter VIP logo

activescaffold's Introduction

**********************************************************************************
** For all documentation see the project website: http://www.ActiveScaffold.com **
**********************************************************************************

ActiveScaffold plugin by Scott Rutherford ([email protected]), Richard White ([email protected]), Lance Ivy ([email protected]), and Ed Moss

Uses DhtmlHistory by Brad Neuberg ([email protected])
http://codinginparadise.org

Uses Querystring by Adam Vandenberg
http://adamv.com/dev/javascript/querystring

Uses Paginator by Bruce Williams
http://paginator.rubyforge.org/

Supports RecordSelect by Lance Ivy
http://code.google.com/p/recordselect/

Released under the MIT license (included)

activescaffold's People

Watchers

 avatar

activescaffold's Issues

column override helper should only have one signature

I've been playing with this.

> def #{column.name}_column(column_value)
>   # column_value is the rendered value of the column that we would
> normally display: h(format_column(value))
> end

This version does not seem useful since the column value is already
preformatted and has no access to the full record.  You mention that
it might be useful for wrapping the value in a link but usually the
link will require some data from the record as parameters.  I would
suggest removing this version and just relying on (column_value,
record).  It actually makes development simpler since I don't have to
worry about which method version should I use.

-Mike

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 6:23

Rico corners use hard-coded colors

Remove hardcoded colors from Rico.Corner.round(). Investigate using other
libraries that don't need hardcoded colors (and handle tables in IE).

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 2:45

method sorting breaks with inconsistent data

Now that method sorting uses Ruby's array#sort_by, it doesn't handle
inconsistent data as well. It fails when comparing nil to fixnum, for
instance. Not sure how best to resolve ... type-casting is tricky because
it doesn't know what the target type should be.

Check Scott's sorting method again for clues.

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 2:29

server-side dhtml history support

had an idea to replace dhtml_history.js. if we could reliably intercept the
back button (or other history traversal events), we could move the client
history server-side. this would provide a broader and more reliable history
solution (the current one is FF/IE only, i believe).

if session storage becomes a concern, we could limit a person's history to
a number of pages, say, five.

Original issue reported on code.google.com by [email protected] on 21 Feb 2007 at 5:27

inline adapters don't work in Opera

What steps will reproduce the problem?
1. Click "Show"
2. Click "X" to close
3.

What is the expected output? What do you see instead?
I expect the show view to replace the current view. Instead it appears to
the right. Then, I expect the X to close the show view. Instead it reloads
the page.

I can fix these two bugs by adding "if (window.opera) throw('use
ContentFromAnonymousTable')" to Abstract.Insertion.initialize (line 1628 in
Prototype 1.5.0). But then Opera fails to refresh the original row correctly.

I don't want to start patching Prototype until I can solve all the issues
together.

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 10:06

Update rounded corners

We either need upgrade our rounded corner JS library to one that will work
cross browser without requiring the colors to be hard coded.

Original issue reported on code.google.com by [email protected] on 20 Feb 2007 at 7:46

add LogicalSearch action

would allow user to build field/operator/value clauses and join them
together with and/or operators.

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 3:08

case sensitivity in searching

searching is case-sensitive in postgresql. currently the search term is
downcase'd, but the field is not.

consider: if we downcase the field, will that ruin the indexing?

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 2:38

ability to customize css class of <tr> and <td> tag per-record

it can be useful to customize the css class of a <tr> or a <td> based on
properties of the record. for instance, highlighting a row (or cell) in red
if it contains a negative value (consider a financial data table).

we could be minimal and only support customized css classes for the <tr> or
the <td>. if we only supported customized css on the <tr>, then people
could style individual <td> based on the standard css class. if we only
supported <td>, then people could style the <tr> by styling each <td>.

options for implementation:
  1) conventional helper method
  2) a proc in the list configuration

Original issue reported on code.google.com by [email protected] on 20 Feb 2007 at 10:14

add Export action

would allow user to request and download result set in XML or CSV format.
different from the RESTful API because it allows people using normal
browsers to click-and-save.

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 3:10

render :update calls aren't override-friendly

If someone wants to extend the JavaScript response for a response generated
by render :update, they need to override the entire method. If we move
entirely to RJS files no matter how simple the response, people can
override the template independently.

And yes, I know, I'm the one that put the render :update calls in there in
the first place.

Original issue reported on code.google.com by [email protected] on 20 Feb 2007 at 12:33

language support for unconfigurable strings

* http://mir.aculo.us/2005/10/03/ruby-on-rails-i18n-revisited
* Spanish, German, French, English (official files)
* global configuration setting (like theme)
* override option

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 2:53

interning empty string

What steps will reproduce the problem?
1. Open live search
2. Optionally type something in search box
3. Press enter with focus in search box

What is the expected output? What do you see instead?
I expect the search to process. Instead I get an exception report about
interning an empty string.

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 2:35

support for semantic attributes

support ActiveRecord Annotations when available. use annotations to improve
the form (widget selection, validation), list (special rendering, e.g.
phone number formatting or image thumbnail display), and search (in case
people search using the formatted value instead of the database value).

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 3:19

Refactor _nested.rhtml

while you do that let me voice my desires for refactoring around _nested.rhtml

for sub forms I currently have a (crude) way of finding a scaffold config given 
the model class, I feel 
like a lot of the work in _nested should be integrated in with that helper 
method

we should be able to if given a model ask helper to give us a scaffold config 
for that model and get 
the controller name if necessary

we should also use render :active_scaffold instead of render_component there

and perhaps render :active_scaffold can take a model class and go off and find 
the controller on it's 
own, I dunno but we need to push that into some helpers and out of this 
particular view
okay... just wanted to get that into the transcript :)

Original issue reported on code.google.com by [email protected] on 21 Feb 2007 at 12:53

nested scaffolds show the reverse association column

By default, nested scaffolds show the reverse association column (e.g. if
the UserGroups scaffold displayed a nested Users scaffold, then the Users
scaffold would still display info about the related UserGroup). This column
can't be removed because then it triggers bugs like reported in issue #43.

If the reverse association columns were automagically hidden, then we could
avoid poking holes in the security filters and still provide a usable UI.

Original issue reported on code.google.com by [email protected] on 16 Feb 2007 at 9:18

search performance

Searching uses a LIKE '%?%' syntax, which is not indexable. Consider using
LIKE '?%' instead.

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 2:36

frontends/themes

* Change “themes” into “frontends” and create new stylistic concept of 
themes
* Have assets overwrite based on frontend
* Add note to assets directory that it is dynamically generated
* simple configuration for frontends: color, form style, etc.

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 3:20

&quot;even&quot; class injected into totals row

For a while I have been ignoring a problem in which the formatting of
the totals row intermittently goes AWOL.

To recreate the problem I need to start with a record set with an odd
number of records showing.  The problem can then be re-created by
opening and cancelling the update form.  Before opening the update
form Firebug tells me that the the total row is under the influence of
the "ajax-scaffold-totals" CSS class.   However, after opening and
closing the form the total row is under the influence of the non-
existent "ajax-scaffold-totals even" class.

This none existent class is being over-ridden by the ".ajax-scaffold
tr.even td" class... thus the formatting problems.

Refreshing the page corrects the situation and simply creating a "ajax-
scaffold-totals even" class in the CSS does not seem to sort the
problem. And there is no problem with an even number of records!!

Can anyone else reproduce this effect?  If so.. reported as a
problem.  If not, any tips on CSS entries that may sort my problem
gratefully received.

Neil

----------

The background and the border are affected but I have hidden border
problem by setting it to the same as "ajax-scaffold tr.even td" class.

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 6:33

font sizes are not easily scaled

use relative font-size specifications in stylesheet, and only specify an
absolute size on the base class (div.active-scaffold). this lets a designer
change one value to scale the scaffold to the page.

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 3:17

nested scaffolds don't have customized labels

when reworking nested (embedded) scaffolds to use constraints, i lost the
feature whereby the constraints customize the scaffold label.

difficulties in reimplementing this:
* localization (possible solution: use parenthesis instead of "for")
* which constraints to use? just association-based ones?

maybe we actually want to customize the scaffold label as part of the
'render :active_scaffold' call. then it's in the dev's hands, but we can
still make it slick for nested scaffolds.

Original issue reported on code.google.com by [email protected] on 22 Feb 2007 at 1:16

add BatchUpdate action

would allow user to update specified fields to specified values for all
records matching current search terms

Original issue reported on code.google.com by [email protected] on 15 Feb 2007 at 3:09

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.