Hobo / hobo

The web app builder for Rails (moved from tablatom/hobo)
http://hobocentral.net
103 stars 39 forks source link

Add activation_email_url route to routes.rb #2

Closed iox closed 12 years ago

iox commented 12 years ago

This is a proposed partial solution to ticket 1022 (https://hobo.lighthouseapp.com/projects/8324-hobo/tickets/1022-possible-issue-with-default-activation-link-with-some-browserswebmails#ticket-1022-3).

The idea is to add a "hardcoded" route in routes.rb, and also change the activation email template. I looked at the hobo_routes generation, but I didn't see a clean way of changing the generated code.

If this solution is found acceptable, I can do the same for accept_invitation and reset_password URLs.

bryanlarsen commented 12 years ago
iox commented 12 years ago

Hi Bryan,

This is the current route: http://myserver/users/123456-username/activate?key=64793369eac2b9763a11f9d2d4da92eb71dfbd34

And the proposed: http://myserver/users/123456-username/activate/64793369eac2b9763a11f9d2d4da92eb71dfbd34

Would you prefer something like http://myserver/users/123456-username/activate_from_email/64793369eac2b9763a11f9d2d4da92eb71dfbd34

About editing activation.erb: You are completely right, the change is not necessary.

bryanlarsen commented 12 years ago

That's fine with me On Oct 12, 2012 4:32 AM, "Ignacio Huerta" notifications@github.com wrote:

Hi Bryan,

This is the current route: http://myserver/users/123456-username/activate?key=64793369eac2b9763a11f9d2d4da92eb71dfbd34

And the proposed: http://myserver/users/123456-username/activate/64793369eac2b9763a11f9d2d4da92eb71dfbd34

Would you prefer something like http://myserver/users/123456-username/activate_from_email/64793369eac2b9763a11f9d2d4da92eb71dfbd34

About editing activation.erb: You are completely right, the change is not necessary.

— Reply to this email directly or view it on GitHubhttps://github.com/Hobo/hobo/pull/2#issuecomment-9369718.

iox commented 12 years ago

Hi Bryan, what do you think of the new routes?

bryanlarsen commented 12 years ago

Looks good. Do the same for the other two URL's and go ahead and merge into Hobo.

iox commented 12 years ago

Finished and merging :)