Eliminated some N+1 query generation issues on context and project detail pages related to looking up tags.
Added rake task to turn on and off the mysql query_analyzer plugin, which I'm using to help in my optimization process.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@662 a4c988fc-2ded-0310-b66e-134b36920a42
Updated some HTTP error status codes to play better with ActiveResource.
Added date_field_tag helper method and make it format the date properly.
Used beginning_of_day() instead of to_date().to_time().
Verified all tests pass on Win32.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@542 a4c988fc-2ded-0310-b66e-134b36920a42
arguably just another representation of the same resources, so it seems to fit
the RESTful Rails paradigm to use an extension (.m) to switch on in the
respond_to stanza.
I needed some hackery to make this work. See my note in todos_controller for
a full explanation.
I also added a route to get to the mobile view by using 'domain.com/m'
Created some selenium tests for the mobile view, too.
In optimizing the data access for the mobile view, I ran into "a bug in rails
pagination":http://dev.rubyonrails.org/ticket/7885" and integrated a nice
pagination plugin from the Err the Blog guys
("will_paginate":http://errtheblog.com/post/929) to work around the issue.
NOTE that this changeset includes a new line in environment.rb.tmpl (at
the bottom). Be sure to copy this into your environment.rb file.
These changes fix#489 (cannot edit action using mobile interface).
Thanks for the bug report, lrbalt!
In the name of consistency, I made the argument to the block for all
respond_to calls 'format' (instead of the formerly cool 'wants').
Lastly, I added a link to the project's new contribute page to the footer of
the main web UI. Help us join the Mac on Intel world. :-)
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@517 a4c988fc-2ded-0310-b66e-134b36920a42
Refactor out some finds to use automatically scopred finds on assication extensions.
Refactor out some error handling for very unusual cases.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@486 a4c988fc-2ded-0310-b66e-134b36920a42
this context will be pre-populated when creating an action from the project's page.
When creating an action from the home page, the context will be auto-selected when
the project is selected if the context field has not yet been entered.
This implementation is a combination of the great patch submitted by James Kebinger
(thanks James!) and some of my modifications and additions.
Don't forget to rake db:migrate.
Fixes#162, originally suggested by Rolf one year ago!
Also in this commit:
* Tweaked selenium tags test
* Tweaked formatting of next/previous project HTML
* Implemented Null Object pattern for context to support
a Project having no default context
* Removed tickler.rhtml, no longer in use
* applying z-index values to project sortable list items (otherwise context
autocomplete was appearing below next list item)
* Swapped order of project and context in new action form (setting default context
makes more sense this way)
* Removed CSS width of for form elements, so form could be used in content area
without being too narrow
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@480 a4c988fc-2ded-0310-b66e-134b36920a42
More adjustments to the time zone calculations. Fixes#450
Add context and project finders as Association Extensions on the User model to simplify controllers and address the feed bug identified by Ryan. Fixes#446 and #444
Replaced usages of "uncompleted" with "incomplete"
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@454 a4c988fc-2ded-0310-b66e-134b36920a42
Refactored ProjectsController#index and ContextsController#index to simplify them.
Tweak the taggings fixtures to fix broken tests.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@451 a4c988fc-2ded-0310-b66e-134b36920a42
Changes include:
* Update the URL on the Feeds page to use /contexts.rss or /contexts.txt instead of FeedController? link
* Add created_at and updated_at timestamps to contexts table to support ATOM feeds
Notes:
* This will break previous context listing feed subscriptions.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@423 a4c988fc-2ded-0310-b66e-134b36920a42
Also fixed a recently introduced bug that caused projects or contexts with numbers in the name to fail to resolve properly by URL
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@401 a4c988fc-2ded-0310-b66e-134b36920a42
This change also changes context detail page URLs from /context/my_context to /contexts/my_context
Add a database index on the projects and contexts tables, user_d + name, to speed the lookup used in urls
Brought the URLs within various feeds up-to-date
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@399 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-14 19:18:07 +00:00
Renamed from tracks/app/controllers/context_controller.rb (Browse further)