#7 open
EdwardOG

Inline editing of Flickr-fed image post comments broken

Reported by EdwardOG | December 14th, 2008 @ 08:09 PM

After hooking up a Flickr feed and seeing some pictures come in, I tried to edit one of the captions and found that I was unable to.

[before] http://skitch.com/edwardog/6tcy/...

[editing] http://skitch.com/edwardog/6tcr/...

[after submitting, the submit input greys-out, and I see the following trace]


Processing PostsController#update (for 127.0.0.1 at 2008-12-14 19:20:04) [PUT]
  Parameters: {"action"=>"update", "post"=>{"header"=>"I like dinosaurs."}, "_method"=>"put", "authenticity_token"=>"1e51e622e648fd734d22f300e6a053c8075c6314", "id"=>"23", "controller"=>"posts"}
  User Load (0.3ms)   SELECT * FROM "users" WHERE ("users"."id" = 1) LIMIT 1
Redirected to /admin/posts/23
Filter chain halted as [:redirect_to_admin] rendered_or_redirected.
Completed in 10ms (DB: 0) | 302 Found [http://localhost/posts/23]


Processing Admin::PostsController#show (for 127.0.0.1 at 2008-12-14 19:20:04) [GET]
  Parameters: {"action"=>"show", "id"=>"23", "controller"=>"admin/posts"}
  User Load (0.2ms)   SELECT * FROM "users" WHERE ("users"."id" = 1) LIMIT 1
  Post Load (0.2ms)   SELECT * FROM "posts" WHERE ("posts"."permalink" = '23') LIMIT 1
  Post Load (0.3ms)   SELECT * FROM "posts" WHERE ("posts"."id" = 23) 
Redirected to /admin/posts
Completed in 21ms (DB: 1) | 302 Found [http://localhost/admin/posts/23]


Processing Admin::PostsController#index (for 127.0.0.1 at 2008-12-14 19:20:04) [GET]
  Parameters: {"action"=>"index", "controller"=>"admin/posts"}
  User Load (0.2ms)   SELECT * FROM "users" WHERE ("users"."id" = 1) LIMIT 1
wrong constant name /post
  Post Load (1.8ms)   SELECT * FROM "posts" WHERE (deleted_at IS NULL) ORDER BY posts.created_at DESC LIMIT 10 OFFSET 0
  Comment Load (0.6ms)   SELECT "comments".* FROM "comments" WHERE ("comments"."commentable_id" IN (43,23,24,25,26,27,28,29,30,31) and "comments"."commentable_type" = 'Post' AND (comments.spam = 'f')) 
  Feed Load (0.2ms)   SELECT * FROM "feeds" WHERE ("feeds"."id" = 6) 
  SQL (0.1ms)   select sqlite_version(*)
  SQL (0.5ms)   SELECT count(DISTINCT "posts".id) AS count_all FROM "posts" LEFT OUTER JOIN "comments" ON "comments".commentable_id = "posts".id AND "comments".commentable_type = 'Post'AND comments.spam = 'f' LEFT OUTER JOIN "feeds" ON "feeds".id = "posts".feed_id WHERE (deleted_at IS NULL) 
Rendering template within layouts/application
Rendering admin/posts/index
Rendered admin/posts/types/_article (1.9ms)
Rendered admin/posts/_post (4.3ms)
Rendered admin/posts/types/_picture (0.6ms)
Rendered admin/posts/_post (2.2ms)
Rendered admin/posts/types/_picture (0.5ms)
Rendered admin/posts/_post (1.1ms)
Rendered admin/posts/types/_picture (0.5ms)
Rendered admin/posts/_post (1.1ms)
Rendered admin/posts/types/_picture (0.5ms)
Rendered admin/posts/_post (1.1ms)
Rendered admin/posts/types/_picture (0.5ms)
Rendered admin/posts/_post (1.0ms)
Rendered admin/posts/types/_picture (0.5ms)
Rendered admin/posts/_post (1.1ms)
Rendered admin/posts/types/_picture (0.5ms)
Rendered admin/posts/_post (1.1ms)
Rendered admin/posts/types/_picture (0.5ms)
Rendered admin/posts/_post (1.0ms)
Rendered admin/posts/types/_picture (0.5ms)
Rendered admin/posts/_post (1.0ms)
Rendered shared/_admin (0.4ms)
Completed in 70ms (View: 24, DB: 3) | 200 OK [http://localhost/admin/posts]

I think the issue here is that when the redirect_to_admin is hit, it’s not passing on the PUT and its params.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Open source tumblog in Ruby on Rails.

<a href="http://aintablog.com">aintablog.com</a>

People watching this ticket

Tags

Pages