Thanks Sergio. That resolved all issues.

On Oct 21, 3:56 am, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> I forgot to update stylesheet for asset pipeline and put image in
> record_select directory
> It's fixed in 3.1.2
>
> On Viernes, 21 de Octubre de 2011 02:22:34 JB escribió:
>
>
>
> > There seems to be something wrong with the asset pipeline and
> > templates. This is what happens when I first click in the box:
>
> > 19:16:46 web.1     |   SubContractor Load (0.2ms)  SELECT * FROM
> > "sub_contractors" ORDER BY sub_contractors.id ASC LIMIT 2 OFFSET 0
> > 19:16:46 web.1     | Rendered /Users/jeff/.rvm/gems/ruby-1.9.2-
> > p136@active_scaffold/gems/recordselect-3.1.1/app/views/record_select/
> > _list.html.erb (4.4ms)
> > 19:16:46 web.1     | Rendered /Users/jeff/.rvm/gems/ruby-1.9.2-
> > p136@active_scaffold/gems/recordselect-3.1.1/app/views/record_select/
> > _browse.html.erb (8.6ms)
> > 19:16:46 web.1     | Completed 200 OK in 49ms (Views: 12.6ms |
> > ActiveRecord: 1.3ms)
> > 19:16:46 web.1     |
> > 19:16:46 web.1     |
> > 19:16:46 web.1     | Started GET "/assets/record_select/next.gif" for
> > 127.0.0.1 at 2011-10-20 19:16:46 -0500
> > 19:16:46 web.1     | Served asset /record_select/next.gif - 404 Not
> > Found (74ms)
> > 19:16:46 web.1     |
> > 19:16:46 web.1     | ActionController::RoutingError (No route matches
> > [GET] "/assets/record_select/next.gif"):
> > 19:16:46 web.1     |
> > 19:16:46 web.1     |
> > 19:16:46 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/routing_error.erb within rescues/layout
> > (0.6ms)
>
> > And then when I enter something like "aaa" in the box I get this back:
>
> > 19:19:19 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.4ms)
> > 19:19:19 web.1     |
> > 19:19:19 web.1     |
> > 19:19:19 web.1     | Started GET "/sub_contractors/browse?
> > escape=false&page=1&update=1&utf8=%E2%9C%93&search=aaa" for 127.0.0.1
> > at 2011-10-20 19:19:19 -0500
> > 19:19:19 web.1     |   Processing by SubContractorsController#browse
> > as JS
> > 19:19:19 web.1     |   Parameters: {"escape"=>"false", "page"=>"1",
> > "update"=>"1", "utf8"=>"✓", "search"=>"aaa"}
> > 19:19:19 web.1     |   User Load (0.1ms)  SELECT "users".* FROM
> > "users" WHERE "users"."id" = 1 LIMIT 1
> > 19:19:19 web.1     |    (0.2ms)  SELECT COUNT(*) FROM
> > "sub_contractors" WHERE (((company LIKE '%aaa%' OR name LIKE '%aaa
> > %')))
> > 19:19:19 web.1     | Completed 500 Internal Server Error in 39ms
> > 19:19:19 web.1     |
> > 19:19:19 web.1     | ActionView::MissingTemplate (Missing template
> > record_select/browse with
> > {:handlers=>[:erb, :builder, :coffee], :formats=>[:js, :html],
> > :locale=>[:en, :en]}. Searched in:
> > 19:19:19 web.1     |   * "/Users/jeff/rails/reconn/app/views"
> > 19:19:19 web.1     |   * "/Users/jeff/.rvm/gems/ruby-1.9.2-
> > p136@active_scaffold/gems/recordselect-3.1.1/app/views"
> > 19:19:19 web.1     |   * "/Users/jeff/.rvm/gems/ruby-1.9.2-
> > p136@active_scaffold/gems/devise-1.4.9/app/views"
> > 19:19:19 web.1     |   * "/Users/jeff/.rvm/gems/ruby-1.9.2-
> > p136@active_scaffold/bundler/gems/active_scaffold-d22b3ac72a78/
> > frontends/default/views"
> > 19:19:19 web.1     | ):
> > 19:19:19 web.1     |
> > 19:19:19 web.1     |
> > 19:19:19 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)
>
> > Is there something else I need to configure?
>
> > 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.
>
> --
> Sergio Cambra .:: entreCables S.L. ::.
> Mariana Pineda 23, 50.018 Zaragoza
> T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
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.

Reply via email to