Ok. Here is what the log shows when I try do it on just my Category field:
Started GET "/categories/complete_name?query=Computer" for 127.0.0.1 at
2012-05-03 19:18:24 -0600
[1m [36mSQL (2.0ms) [0m [1mSHOW TABLES [0m
[1m [35mSQL (1.0ms) [0m SHOW TABLES
[1m [36mSQL (2.0ms) [0m [1mSHOW TABLES [0m
[1m [35mSQL (1.0ms) [0m SHOW TABLES
[1m [36mSQL (1.0ms) [0m [1mSHOW TABLES [0m
[1m [35mSQL (2.0ms) [0m SHOW TABLES
[1m [36mSQL (2.0ms) [0m [1mSHOW TABLES [0m
Processing by CategoriesController#show as JS
Parameters: {"query"=>"Computer", "id"=>"complete_name"}
[1m [35mSQL (1.0ms) [0m SELECT COUNT(*) AS count_id FROM `users`
[1m [36mUser Load (1.0ms) [0m [1mSELECT `users`.* FROM `users` WHERE
(`users`.`id` = 1) LIMIT 1 [0m
[1m [35mCategory Load (0.0ms) [0m SELECT `categories`.* FROM
`categories` WHERE (`categories`.`id` = 0) LIMIT 1
Completed in 20ms
ActiveRecord::RecordNotFound (Couldn't find Category with ID=complete_name):
Rendered
C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb
(1.0ms)
Rendered
C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
(3.0ms)
Rendered
C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
within rescues/layout (16.0ms)
I assume the key entry here is the one indicating that ActiveRecord could
not fine the Category with ID=complete_name.
Should there be a method in the Category controller called complete_name?
Jim
On Tuesday, May 1, 2012 10:22:30 AM UTC-6, jhstephenson wrote:
>
> In another development tool I use, when I have a selection list that
> exceeds 20 or 30 items I usually create a button on the data entry form
> that takes me to a screen similar in form to Hobo's Index page. From there
> I can search for the record I am looking for and then click a button or
> link to select the record I want. The ID of the selected record is returned
> to the calling form and the link to the child is established.
>
> It looks to me like that should be possible with something like a
> Table-Plus based form, but I have no clue how to set that up.
>
> Can someone point me to an example of how something like this might be
> done?
>
> Thanks,
> Jim
>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/hobousers/-/-bYz6vq8TaQJ.
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/hobousers?hl=en.