Questions tagged [activescaffold]

A Ruby on Rails gem that lets you create user interfaces for CRUD (Create, Read, Update and Delete) operations.

It offers features including searching, pagination and layout control.

https://github.com/activescaffold/active_scaffold

140 questions
0
votes
1 answer

Where to put custom JavaScript/Prototype code for an ActiveScaffold form?

I have a Select dropdown on the form of an ActiveScaffold. I am trying to hide some of the fields on the form if a particular value is selected. A [similar question][1] was posted to the ActiveScaffold Google Group, and the supplied Prototype code…
Guy C
  • 6,970
  • 5
  • 30
  • 30
0
votes
1 answer

Active Scaffold How to list how many records are dynamically displayed per page in Rails 3

I found the configuration "list.per_page" of active scaffold, but i can that user enter how many records he wants to list. I want something dynamic, because "list.per_page" is a amount static. somebody how to know to do it?
0
votes
2 answers

ActiveScaffold sort column

I'm trying to add sorting to my activscaffold. Example code is: active_scaffold :user do |config| config.columns = [:id, :name, :rating] config.list.per_page = 25 config.columns[:rating].sort = true But when i check column 'RATING' isn't sortable.
Alex Todef
  • 370
  • 2
  • 7
0
votes
1 answer

Render link for association

I have an Order model which has one Cart model. In orders#edit form I want to have a link to the carts#show page of the belonging cart. The documentation mentions several UI elements which can be rendered, but I don't see things which can render…
lulalala
  • 17,572
  • 15
  • 110
  • 169
0
votes
1 answer

Chaining a calendar_date_select to a select in ActiveScaffold

I am trying to chain a calendaer_date_select to a select field, so the select list is filtered by the choosen date. I have followed the instructions as described here I have in the activescaffold config: config.columns[:order_date].form_ui =…
Guy C
  • 6,970
  • 5
  • 30
  • 30
0
votes
1 answer

In ActiveScaffold a Form Override breaks Field Search

In a Rails app I have Sales and Salespeople: class Sale < ActiveRecord::Base belongs_to :salesperson end class Salesperson < ActiveRecord::Base has_many :sales end I have an ActiveScaffold for sales. I've switched on field searching and can…
Guy C
  • 6,970
  • 5
  • 30
  • 30
0
votes
1 answer

ActiveScaffold search a join table?

I have general field search in ActiveScaffold working. I'm not sure how to do this more complex searching. I have two tables, Account and User, and I want to search emails and get back a list of matching accounts. The email field is in User, and…
John
  • 485
  • 2
  • 5
  • 15
0
votes
1 answer

Displaying links on columns mapped to custom attributes

Say I have Course that has_many Students. I also have def top_student in the Course class. I now have an active_scaffold on top of Course, but if I add top_student as a column it show shows #, but no link. I'd like a link to the Student who is…
Newy
  • 38,977
  • 9
  • 43
  • 59
0
votes
2 answers

Rails 3 + devise + active_scaffold how make password not required

I have the model Agency based on Devise: class Agency < ActiveRecord::Base devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable attr_accessible :name, :email, :phone, :address, :city,…
Lesha Pipiev
  • 3,251
  • 4
  • 31
  • 65
0
votes
1 answer

rails 3 activescaffold --ID-- strange behavior

Its a scream of my soul )) I didn't never see such behavior before. active_scaffold 3.0.3 rc I am trying to add a custom action: config.action_links.add 'zip_consumer_images', :controller => '/services', :label => 'images', :page =>…
Lesha Pipiev
  • 3,251
  • 4
  • 31
  • 65
0
votes
1 answer

ActiveScaffold and DatePickerBridge: Can't convert rails date format

I have a problem on my rails app using the staging environment. The error is as follows: ActiveScaffold: Missing datetime picker localization for your locale: en-US AS DatePickerBridge: Can t convert rails date format: %a, %d %b %Y %H:%M:%S %z to…
0
votes
1 answer

How to create nice forms with active_scaffold gem on Rails 3

How to override Active Scaffold form fields for date or time? (datepicker and calendar_date_select didn't work for me, probably because I'm using the activescaffold gem) How to override Active Scaffold form to select from a list of resources in…
cider
  • 397
  • 5
  • 11
0
votes
1 answer

ActiveScaffold url_options

I am very new to Ruby and Rails and I am trying to make a modification to a page that is generating the Show, Edit and Delete links for the records using activescaffold. The issue I have is that the page that I am looking at has the links being…
richcfml
  • 39
  • 1
  • 7
0
votes
2 answers

ActiveScaffold vs DeviseInvitable

Using Active Scaffold on devise resource, error appeared after use of devise-invitatible NameError in Admin/users#index Showing /home/user/.rvm/gems/ruby-1.9.3-p286/gems/active_scaffold-3.2.16/frontends/default/views/_list_record_columns.html.erb…
0
votes
2 answers

activescaffold @records manipulation in a before filter

I would like to call @records.collect{|r| r.set_some_virtual_attribute(@context)} before rendering an activescaffold index view, but if I do this : controller FooController < ApplicationController before_filter :change_things, :only => :index …
Chris Drappier
  • 5,280
  • 10
  • 40
  • 64
1 2 3
9
10