activescaffold

uninitialized constant Active Scaffold rails 2.3.5

为君一笑 提交于 2019-12-24 02:58:15
问题 I update my rails application 2.0.2 to 2.3.5. I use active scaffold for the administration part. I change nothing in my code but a problem is coming with the update. I have a controller 'admin/user_controller' to manage users. Here is the code of the controller: class Admin::UserController < ApplicationController layout 'admin' active_scaffold :user do |config| config.columns.exclude :content, :historique_content, :user_has_objet, :user_has_arme, :user_has_entrainement, :user_has_mission, :mp

ActiveScaffold gives stack too deep error; can not find any recursion

孤街浪徒 提交于 2019-12-23 05:32:14
问题 I have a 3.0.7 app using active scaffold from github vhochstein/master. I am using the 3.x compatible version which can be used as a vendor/plugin, rather than requiring gem-installation. In production it hits ActionView::Template::Error (stack level too deep):. beaumont@edouard:~/beaumont/current$ script/rails server -p 4000 ActionView::Template::Error (stack level too deep): 8: depth = Kernel.caller.count 9: logger.info "pagination: #{@page} #{depth}" 10: %> 11: <%= render :partial => 'list

RoR: How to handle custom nested form's submit

↘锁芯ラ 提交于 2019-12-12 03:46:10
问题 I managed to do almost all the way towards happiness with my custom form in ruby-on-rails, but the very last step is missing and it is impossible to find the answer on the net because of too many common words. I believe that the answers to my questions are trivial for people who have done RoR for a time, but be warned that the presentation of the question will be somewhat complicated. Let's see an equivalent problem! Schema: publishers (id, name, address) books (id, title, publisher_id,

active_scaffold hangs on infinite loop

陌路散爱 提交于 2019-12-11 21:13:43
问题 I'm trying to use active scaffold (3.0.26) in my Rails (3.0, ruby 1.8.7) project. I've added a simple tender to my page: <%= render :active_scaffold => 'users', :constraints => {:gender => "male"}%> When I enter that page, application starts an infinite loop. consumes more and more resources and the only solution is to kill -9 the server process. It feels like a basic mistake, but I don't know, what I did wrong. Could you help me? 回答1: Please don't use Active Scaffold. It's a really old and

How to Make CSV Format Report of User Information using Active Scaffold in Rails 2.3.8

余生颓废 提交于 2019-12-11 15:59:38
问题 I am New Ruby on Rails. I want to export CSV File for User Information which is having user controller. Ruby version: 1.8.7 Rails version: 2.3.8 Example: I have user controller: class Admin::UserController < ApplicationController active_scaffold :users do |config| config.list.sorting = {:name => :asc} config.columns[:name].form_ui=:text_input config.columns[:name].inplace_edit=true config.columns[:email].form_ui=:text_input config.columns[:email].inplace_edit=true config.columns[:phone].form

How to add a new link in Active scaffold rails 3

风格不统一 提交于 2019-12-10 21:18:22
问题 I need to add a new link 'map' in my Taxis listing page, I am using active-scaffold and Rails 3.2.1. My current page looks like the below. I need to show a link 'map' similar to edit/delete/show in each record. In my database I have fields name, lat, lng. How can this be done. Please help. 回答1: You have to add your link in the configure part in your controller. I did it like this: controller Admin::TaxisController < Admin::ApplicationController active_scaffold :taxi do |config| config.action

Rails 3.1 active_scaffold 'jQuery(“form.as_form”).live' is not a function

孤街浪徒 提交于 2019-12-08 02:58:26
问题 Rails 3.1.10 Active_scaffold 3.2.17 I got the js error message: Event thread: DOMContentLoaded Uncaught exception: TypeError: 'jQuery("form.as_form").live' is not a function Error thrown at line 25, column 5503 in <anonymous function>() in http://localhost/assets/application.js?body=1: jQuery("form.as_form").live("ajax:beforeSend",function(e){var t=jQuery(this).closest("form");return.................................... Could anyaone help? Thanks. 回答1: I spent half a day to find out what is