Super plugin, thanks! I was just trying it and found 2 problems:
1- RESTful routing is ruining your “search” feature. I had to invert the route order to get it to work (that is, REST routes in the end of the routes.rb file):
ActiveRecord::RecordNotFound (Couldn’t find User with ID=show_search):
2- SQL is not being well generated for self-referential HATBM. ActiveScaffold is trying to insert a new “friend” for the user, but is setting the id field (in this case with the value 4, that already exists in the DB)...
charles said on
January 24th, 2008 at
03:32 AM ...
hi!
i still get this issue with this version:
vendor/plugins/active_scaffold/lib/extensions/action_controller.rb:26:in `alias_method’: undefined method `render_action’ for class `ActionController::Base’ (NameError)
from …./vendor/plugins/active_scaffold/lib/extensions/action_controller.rb:26
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
...
any ideas?
i reinstalled rails (2.0.2), all the dependencies, etc. etc., but nothing.
i have been like this for a week or so. i would like to get my site back up with rails 2.0. can you help?
thanks!
charles said on
January 25th, 2008 at
06:00 PM ...
never mind, we got it working after cleaning all the files and reinstalling clean.
Hey, thanks for a new release. I also had to install manually to avoid the same error as charles saw. Also, I had to change (in the routes.rb file, for the notes controller:
map.resources :notes
to
map.resources :notes, :active_scaffold => true
in order to get the searching feature to work properly.
I’m encountering a major bug: any attempt to sort a column fails with an error message.
I started an app from scratch to verify that this was not due to some code of mine, but would happen with a blank app with one model and just the bare minimum of stuff:
active_scaffold :model # in the controller
<%= active_scaffold_includes %> # ditto
<%= javascript_include_tag :defaults %> # in view's head
I get the error with or without data. Here’s the resulting error message (with data—probably identical without):
Events
ActiveRecord::RecordNotFound in EventsController#show
Couldn’t find Event with ID=update_table
RAILS_ROOT: /Data/Rails/believer
Application Trace | Framework Trace | Full Trace
Request
Parameters:
{“authenticity_token”=>”929508853f29bb631c272a7ce79e59f0995c606a”,
“id”=>”update_table”,
“page”=>”1”,
“sort”=>”title”,
“sort_direction”=>”ASC”}
Show session dump
(reposted because textile messed up the previous comment in a big way, including rearranging the order of the text, which made it hard to understand. Sorry in advance if I don’t fully fix this version: I’m familiar with Markdown, not Textile.)
I’m encountering a major bug: any attempt to sort a column fails with an error message.
I started an app from scratch to verify that this was not due to some code of mine, but would happen with a blank app with one model and just the bare minimum of stuff:
active_scaffold :model # in the controller
<%= javascript_include_tag :defaults %> # in view's head
<%= active_scaffold_includes %> # ditto
I get the error with or without data. Here’s the resulting error message (with data—probably identical without):
I can send you (or post) the framework trace if you want.
ewo said on
February 19th, 2008 at
02:33 AM ...
I have a table with no id column and active_scaffold doesn’t like it. The table has a primary key called code that is a 5 character string. How can I tell active_scaffold about this column?
Sazima said on January 22nd, 2008 at 11:08 PM ...
Hey!
Super plugin, thanks! I was just trying it and found 2 problems:
1- RESTful routing is ruining your “search” feature. I had to invert the route order to get it to work (that is, REST routes in the end of the routes.rb file):
ActiveRecord::RecordNotFound (Couldn’t find User with ID=show_search):
2- SQL is not being well generated for self-referential HATBM. ActiveScaffold is trying to insert a new “friend” for the user, but is setting the id field (in this case with the value 4, that already exists in the DB)...
ActiveRecord::StatementInvalid (Mysql::Error: Duplicate entry ‘4’ for key 1: INSERT INTO friends (`updated_at`, `id`, `user_id`, `created_at`, `friend_id`) VALUES (‘2008-01-22 20:27:49’, 4, 2, ‘2008-01-22 20:26:31’, 4))
Cheers, Sazima
charles said on January 24th, 2008 at 03:32 AM ...
hi!
i still get this issue with this version:
vendor/plugins/active_scaffold/lib/extensions/action_controller.rb:26:in `alias_method’: undefined method `render_action’ for class `ActionController::Base’ (NameError) from …./vendor/plugins/active_scaffold/lib/extensions/action_controller.rb:26 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’ from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’ ...
any ideas?
i reinstalled rails (2.0.2), all the dependencies, etc. etc., but nothing.
i have been like this for a week or so. i would like to get my site back up with rails 2.0. can you help?
thanks!
charles said on January 25th, 2008 at 06:00 PM ...
never mind, we got it working after cleaning all the files and reinstalling clean.
mike said on January 30th, 2008 at 04:18 PM ...
Hey, thanks for a new release. I also had to install manually to avoid the same error as charles saw. Also, I had to change (in the routes.rb file, for the notes controller:
map.resources :notes
to
map.resources :notes, :active_scaffold => true
in order to get the searching feature to work properly.
Brandon Zylstra said on February 6th, 2008 at 01:28 PM ...
I’m encountering a major bug: any attempt to sort a column fails with an error message.
I started an app from scratch to verify that this was not due to some code of mine, but would happen with a blank app with one model and just the bare minimum of stuff: active_scaffold :model # in the controller <%= active_scaffold_includes %> # ditto
I get the error with or without data. Here’s the resulting error message (with data—probably identical without):
Events ActiveRecord::RecordNotFound in EventsController#show
Couldn’t find Event with ID=update_table RAILS_ROOT: /Data/Rails/believer Application Trace | Framework Trace | Full Trace Request
Parameters: {“authenticity_token”=>”929508853f29bb631c272a7ce79e59f0995c606a”, “id”=>”update_table”, “page”=>”1”, “sort”=>”title”, “sort_direction”=>”ASC”} Show session dump
as:events: :list: page: 1 :csrf_id: e9064d5f1d6b6333e7415a9b72aeefc2 flash: !map:ActionController::Flash::FlashHash {}
Response
Headers: {“cookie”=>[], “Cache-Control”=>”no-cache”}
#
I can send you (or post) the framework trace if you want.
Brandon Zylstra said on February 6th, 2008 at 01:39 PM ...
(reposted because textile messed up the previous comment in a big way, including rearranging the order of the text, which made it hard to understand. Sorry in advance if I don’t fully fix this version: I’m familiar with Markdown, not Textile.)
I’m encountering a major bug: any attempt to sort a column fails with an error message.
I started an app from scratch to verify that this was not due to some code of mine, but would happen with a blank app with one model and just the bare minimum of stuff:
I get the error with or without data. Here’s the resulting error message (with data—probably identical without):
Events ActiveRecord::RecordNotFound in EventsController#show Couldn't find Event with ID=update_table RAILS_ROOT: /Data/Rails/believer Application Trace | Framework Trace | Full Trace Request Parameters: {"authenticity_token"=>"929508853f29bb631c272a7ce79e59f0995c606a", "id"=>"update_table", "page"=>"1", "sort"=>"title", "sort_direction"=>"ASC"} Show session dump --- as:events: :list: page: 1 :csrf_id: e9064d5f1d6b6333e7415a9b72aeefc2 flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}I can send you (or post) the framework trace if you want.
ewo said on February 19th, 2008 at 02:33 AM ...
I have a table with no id column and active_scaffold doesn’t like it. The table has a primary key called code that is a 5 character string. How can I tell active_scaffold about this column?
Sorry, comments are closed for this article.