dynamic-attributes

How Do I make dynamic-attributes Work in JSP Tag Files?

So according to my JSP reference book, as well as every other reference I can find on the web, I'm supposed to be able to do something like: <%@ tag dynamic-attributes="dynamicAttributesVar" %> and then when someone uses an attribute that I didn't define in an attribute directive, I should be able to access that attribute from the "dy...

How to design a system like google base with dynamic attributes? in Ruby on Rails

Hi all I am wanting to create an application that can allow users to add products for sale. I want to make it so that a user can add whatever type of product he/she likes and let them also create stored and searchable attributes for their products - alot like google base does. Does anyone know of the best way to do this ie model it. ...

Dynamic attributes with Rails and Mongoid

Hello, I'm learning MongoDB through the Mongoid Ruby gem with Rails (Rails 3 beta 3), and I'm trying to come up with a way to create dynamic attributes on a model based on fields from another model, which I thought a schema-less database would be a good choice for. So for example, I'd have the models: class Account include Mongoid::...

Rails find_or_create by more than one attribute?

There is a handy dynamic attribute in active-record called find_or_create_by: Model.find_or_create_by_<attribute>(:<attribute> => "") But what if I need to find_or_create by more than one attribute? Say I have a model to handle a M:M relationship between Group and Member called GroupMember. I could have many instances where member_id ...