Locale parameter on URL

I already tried this, but i still have the same.
The confirmation doesn’t show and the index reloads, but with the url of
the
destroy link…

Att.
Paulo H. Vieira Neves
Bsc. Sistemas de Informação
+55 38 9141 5400
MSN: [email protected]
GTALK: [email protected]
SKYPE: paulodemoc

2010/4/9 Andrés gutiérrez [email protected]

When I click on ‘destroy’, I still get to the index page, but with this
url
on the address bar:
http://localhost:3000/fr/recipes?confirm=Are+you+sure%3F&id=4&method=delete
http://localhost:3000/fr/recipes?confirm=Are+you+sure%3F&id=4&method=delete
Att.
Paulo H. Vieira Neves
Bsc. Sistemas de Informação
+55 38 9141 5400
MSN: [email protected]
GTALK: [email protected]
SKYPE: paulodemoc

2010/4/9 Andrés gutiérrez [email protected]

Show the generated destroy url please

2010/4/9 Paulo H. [email protected]

SKYPE: paulodemoc

solutions i recomend you in the other mail.

It worked. Now I found another problem… the “Destroy” link doesn’t
Bsc. Sistemas de Informação


You received this message because you are subscribed to the Google G.
“rails-i18n” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en.


Experiencia es lo que obtienes, cuando no obtienes lo que quieres.

ok. I think you have a sintax error in the destroy link. Show me how you
write the => link_to ,please :slight_smile:

2010/4/9 Paulo H. [email protected]

SKYPE: paulodemoc

The confirmation doesn’t show and the index reloads, but with the url of

If you prefer my “bad” solutions to make the destroy link work, try

work. It doesn’t even prompt anymore, it just refreshes the index page and
+55 38 9141 5400


You received this message because you are subscribed to the Google G.
You received this message because you are subscribed to the Google G.
“rails-i18n” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en.


Experiencia es lo que obtienes, cuando no obtienes lo que quieres.

Hi!

Be careful with your parentheses.

not:
link_to “destroy”, recipe_path(:id => recipe, :method => :delete,
:confirm => t(:sure))

but:
link_to “destroy”, recipe_path(:id => recipe), :method => :delete,
:confirm => t(:sure)

Cheers, Iain

2010/4/9 Andrés gutiérrez [email protected]:

yes, i think that was the problem

2010/4/9 Iain H. [email protected]

:confirm => t(:sure)

url on the address bar:

the destroy link…

this:
page and

MSN: [email protected]

You received this message because you are subscribed to the Google
Groups “rails-i18n” group.
Experiencia es lo que obtienes, cuando no obtienes lo que quieres.
“rails-i18n” group.
“rails-i18n” group.
Experiencia es lo que obtienes, cuando no obtienes lo que quieres.
To unsubscribe from this group, send email to
To unsubscribe from this group, send email to
[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en.


Experiencia es lo que obtienes, cuando no obtienes lo que quieres.

Mine was:

<%= link_to ‘Destroy’, :id => recipe, :confirm => ‘Are you sure?’,
:method
=> :delete %>

and I changed it to:

<%= link_to ‘Destroy’, recipe_path(:id => recipe), :method => :delete,
:confirm => t(:sure) %>

And it worked perfectly =]

Thank you all :wink:

Att.
Paulo H. Vieira Neves
Bsc. Sistemas de Informação
+55 38 9141 5400
MSN: [email protected]
GTALK: [email protected]
SKYPE: paulodemoc

2010/4/9 Andrés gutiérrez [email protected]