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
1
vote
0 answers

Rails Active Scaffold problem with pagination

I start using active_scaffold plugin for data processing (CRUD) . It works fine. but when I navigate the list page with pagination, the browser address bar displays like…
prabu
  • 6,121
  • 8
  • 35
  • 39
1
vote
4 answers

ActiveScaffold hide fields on update form based on record data

I have a Rails app that uses activescaffold and I would like to hide some fields on the update for some of the records. I have been trying to do it using helper methods, but I can not seem to get that to work. What is the best way to do this?
nroose
  • 1,689
  • 2
  • 21
  • 28
1
vote
0 answers

D3/Nivo is unable to render in rails application

I am working on a feature to replace a Flash dashboard with Nivo/D3. I successfully built the dashboard and have it as a React component to be imported. The react component even loads into the browser, but does not render on the page. I have…
1
vote
1 answer

How to set a default value for a text input in ActiveScaffold?

How does one set a default value for a text input using ActiveScaffold 1.2RC1? For later versions, it looks like this (from http://activescaffold.com/2010/7/21/changes-in-naming-schema-for-overrides) should work: module PlayersHelper def…
Josh Glover
  • 25,142
  • 27
  • 92
  • 129
1
vote
2 answers

Images not uploading in Database Rails 5 | Paperclip

I'm unable to upload an image in my nested scaffold form. All other fields are getting in the database except the image. Please help! I am on rails 5.2 and using paperclip for image uploading and images need to be uploaded on AWS. I am not getting…
1
vote
1 answer

ActiveScaffold — When inserting a new record, how to enable entry fields for a column/model to which the being created model "belongs_to"

I have the following database schema: create_table "addresses", :force => true do |t| t.string "road" t.string "city" t.datetime "created_at" t.datetime "updated_at" t.integer "client_id" end create_table "clients",…
denysonique
  • 16,235
  • 6
  • 37
  • 40
1
vote
2 answers

Can ActiveScaffold be configured to show the search form before displaying a list?

When I ask ActiveScaffold to show me a very long list (for example the list of products sold), it runs the database query to get the first page of data and it displays it. If the list has a few relations, this query might take some time to execute…
MiniQuark
  • 46,633
  • 36
  • 147
  • 183
1
vote
2 answers

friendly_id and ActiveScaffold conflict

I have friendly_id and ActiveScaffold installed for my Rails application. Because not all of my models have unique name fields I have to use the Slugged Model to make it work. friendly_id does the job flawlessly I have friendly URLs and I can load…
KARASZI István
  • 30,900
  • 8
  • 101
  • 128
1
vote
2 answers

Ruby on Rails ActiveScaffold: Showing {{model}} instead of model name?

I'm using ActiveScaffold with Ruby on Rails and I'm loving it, however there is one weird thing. Whenever I hit "Edit" or "Create New" in my webapp's ActiveScaffold, it says "Create {{model}}" or "Update {{model}}" in the webapp rather than using…
1
vote
1 answer

how to check status new in activescaffold

active_scaffold :formats do |config| format_order = Format.find(:all, :select => :format_order, :order => :format_order).collect(&:format_order) format_order << format_order.size + 1 # I want only implement when new config.columns =…
khanh
  • 4,516
  • 10
  • 29
  • 48
1
vote
1 answer

Could not find generator active_scaffold_setup

Following this tutorial for setting up ActiveScaffold with Rails3: http://vhochstein.wordpress.com/2010/08/28/setupactivescaffoldrails3/#comment-4 and, when I run the following command: rails g active_scaffold_setup prototype I get: Could not find…
Simplicity
  • 47,404
  • 98
  • 256
  • 385
1
vote
2 answers

RoR: Listing of subrecords

Schema: persons (id, name, birthyear, gender) pets (id, person_id, name, leg_count) plants (id, person_id, kind, qty) I would like to make a read-only report about these things grouped by persons. The listing of personns is done (without the…
Notinlist
  • 16,144
  • 10
  • 57
  • 99
1
vote
1 answer

Rails ActiveScaffold creating link for column

I am using ActiveScaffold gem for my Rails 4 application. I would like to add link to one of column(full_name) for User model. So once I click the user full name it will do some action. I know how to add custom action_links like show, edit, destroy…
r3b00t
  • 6,953
  • 6
  • 27
  • 37
1
vote
3 answers

ActiveScaffold: How do I set the default value for a drop down list?

So I have this create form to create schedules where there is a bunch of fields and one of them is seasons. And seasons table has a field called 'is_current' which if set to 1 tells us that it is the current season. When the create form is display ,…
Swamy g
  • 2,106
  • 4
  • 23
  • 35
1
vote
1 answer

Pass additional parameters to ActiveScaffold view

I'm using ActiveScaffold in a Rails 3 project. I have a layout which yields the default AS views, configured the following way: layouts/admin.html.erb <%= render :partial => "layouts/admin_header" %> [some html] <%= yield %> [more html] <%= render…
hotfire42
  • 555
  • 1
  • 5
  • 10