Hi,
I have a problem that only occurs in non-nested list views (nested lists
work fine).
After a search, the sort and pagination methods disregard the "search"
parameters, thus resetting the list to include all the data, instead of
just the search results.
Example: (rails s -e development)
*User action: Browses to the 'assets' list*
{"action"=>"index", "controller"=>"assets"}
Started GET "/assets" for 127.0.0.1 at 2015-02-06 13:54:27 -0700
Served asset / - 404 Not Found (11ms)
Processing by AssetsController#index as HTML
*Action: search for string 'Laptop'*
{"utf8"=>"√", "commit"=>"Search", "action"=>"index", "controller"=>"assets"}
Started GET "/assets?utf8=%E2%9C%93&search=Laptop&commit=Search" for
127.0.0.1 at 2015-02-06 13:56:02 -0700
Served asset / - 404 Not Found (12ms)
Processing by AssetsController#index as JS
Parameters: {"utf8"=>"√", "search"=>"Laptop", "commit"=>"Search"}
*Action: Click Page 2:*
{"page"=>"2", "utf8"=>"√", "action"=>"index", "controller"=>"assets"}
Started GET "/assets?page=2&utf8=%E2%9C%93" for 127.0.0.1 at 2015-02-06
13:56:57 -0700
Served asset / - 404 Not Found (63ms)
Processing by AssetsController#index as JS
Parameters: {"page"=>"2", "utf8"=>"√"}
*...or...*
*Action: Click to sort by serial_no:*
{"page"=>"1", "sort"=>"serial_no", "sort_direction"=>"ASC", "utf8"=>"√",
"action"=>"index", "controller"=>"assets"}
Started GET
"/assets?page=1&sort=serial_no&sort_direction=ASC&utf8=%E2%9C%93" for
127.0.0.1 at 2015-02-06 13:58:13 -0700
Served asset / - 404 Not Found (12ms)
Processing by AssetsController#index as JS
Parameters: {"page"=>"1", "sort"=>"serial_no", "sort_direction"=>"ASC",
"utf8"=>"√"}
_________
*Also* I'm not sure what this is...
Served asset / - 404 Not Found (12ms)
but I'll deal with that one later.
Thank you.
coalex
Rails 3.2.18
active_scaffold (3.4.1)
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.