Ticket #1 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 2 years ago

Rails Flash Broken 0.4 trunk

Reported by: anonymous Owned by: somebody
Priority: blocker Milestone:
Component: lib Version: 1.0
Keywords: Cc:

Description

# controller code flash[:notice]= 'Some Message'

# mab p flash[:notice]

# html noticeSome MessagenoticeSomeMessage? <p>Some Message</p>

+++++++++++++++++++++++++++++

# mab flash

#html noticeSomeMessage

Change History

Changed 2 years ago by AntRamm

THis also happens with functions such as

link_to('sign up', {:action => 'signup'})

Which renders as:

/account/logout<a href="/account/logout">Logout</a>

Changed 2 years ago by AntRamm

Sorry, got the cut and paste slightly wrong above, and although you would normally use link_to

a "Logout", :href => url_for(:action => 'logout')

renders as

/account/logout<a href="/account/logout">Logout</a>

Hope this helps

Changed 2 years ago by tec

  • status changed from new to closed
  • resolution set to wontfix

This is the sort of problem that the new branch aims to solve. In the meantime you can set @output_helpers to false, or call them directly i.e. @helpers.url_for(...).

Note: See TracTickets for help on using tickets.