Missing template? Not sure what I need to do here. Error below . . .
I've got this for my application.css:
/*
*= record_select_includes
*= require active_scaffold
*= require_self
*= require_tree .
*/
And this for my application.js:
//= require jquery
//= require jquery_ujs
//= record_select_includes
//= require active_scaffold
//= require_tree .
18:03:57 web.1 | Processing by SubContractorsController#browse
as JS
18:03:57 web.1 | Parameters: {"escape"=>"false", "page"=>"1",
"update"=>"1", "utf8"=>"✓", "search"=>"Jorge"}
18:03:57 web.1 | User Load (0.1ms) SELECT "users".* FROM
"users" WHERE "users"."id" = 1 LIMIT 1
18:03:57 web.1 | (0.2ms) SELECT COUNT(*) FROM
"sub_contractors" WHERE (((company LIKE '%Jorge%' OR name LIKE '%Jorge
%')))
18:03:57 web.1 | Completed 500 Internal Server Error in 86ms
18:03:57 web.1 |
18:03:57 web.1 | ActionView::MissingTemplate (Missing template
record_select/browse with
{:handlers=>[:erb, :builder, :coffee], :formats=>[:js, :html], :locale=>[:en,
:en]}.
Searched in:
18:03:57 web.1 | * "/Users/jeff/rails/reconn/app/views"
18:03:57 web.1 | * "/Users/jeff/.rvm/gems/ruby-1.9.2-
p136@active_scaffold/gems/recordselect-3.1.1/app/views"
18:03:57 web.1 | * "/Users/jeff/.rvm/gems/ruby-1.9.2-
p136@active_scaffold/gems/devise-1.4.9/app/views"
18:03:57 web.1 | * "/Users/jeff/.rvm/gems/ruby-1.9.2-
p136@active_scaffold/bundler/gems/active_scaffold-d22b3ac72a78/
frontends/default/views"
18:03:57 web.1 | ):
18:03:57 web.1 |
18:03:57 web.1 |
18:03:57 web.1 | Rendered /Users/jeff/.rvm/gems/ruby-1.9.2-
p136@active_scaffold/gems/actionpack-3.1.0/lib/action_dispatch/
middleware/templates/rescues/missing_template.erb within rescues/
layout (0.5ms)
On Oct 19, 11:48 pm, Hernan Astudillo <[email protected]> wrote:
> sure!
>
> git://github.com/scambra/recordselect.git
>
> if you're on RoR3 just add it to your Gemfile
> gem 'recordselect', git => "git://github.com/scambra/recordselect.git"
>
> bundle install
>
> then in your controller set the column:
>
> conf.column["some_model"].form_ui = :record_select
>
> and in your related model controller
>
> class SomeModelController < ApplicationController
> record_select
>
> and done!
>
> record_select supports a lot of customization, like:
>
> record_select :per_page => 12, :include => [:other_model], :search_on
> => ['others.name', 'other_models.title','some_models.description'],
> :full_text_search => true, :label => proc {|r| "#{r.some_model.title}
> - #{r.some_model.description} "}, :order_by => other_model.created_at'
>
> be sure to pick the right version according to your rails/AS version.
>
> enjoy,
>
> On Wed, Oct 19, 2011 at 1:56 PM, JB <[email protected]> wrote:
> > Does anyone have any suggestions on how best to implement an
> > autocomplete box instead of a select box using active scaffold?
>
> > By the way, you guys are great. I've learned so my over the last
> > couple of weeks about active scaffold by posting to this group. Your
> > answers have been much appreciated.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ActiveScaffold : Ruby on Rails plugin" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group
> > athttp://groups.google.com/group/activescaffold?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.