Ticket #40 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[47] breaks camping

Reported by: zimbatm Owned by: tec
Priority: major Milestone:
Component: lib Version:
Keywords: Cc:

Description

Since [47], I doesn't seem to be able to use instance variables in the view anymore.

Follows the testcase

Attachments

test_x_and_views.rb (477 bytes) - added by zimbatm 2 years ago.
the test case

Change History

Changed 2 years ago by zimbatm

the test case

  Changed 2 years ago by tec

  • owner changed from somebody to tec

Does it work with @arr.push 4 in the view?

  Changed 2 years ago by tec

Eh eh eh. I meant arr.push 4 (no @).

  Changed 2 years ago by daveadams

Do you mean [87]? I'm having the same problem in Rails: using revision 86, I can access @flash and @content_for_layout as well as those same vars without the @. But as of revs 87 through 90, those variables are nil.

follow-up: ↓ 5   Changed 2 years ago by tec

Yes it was [87] that broke everything... [91] should behave better with Rails.

With the current code the way to access @flash is just flash... this change isn't necessarily permanent though :)

in reply to: ↑ 4   Changed 2 years ago by nochte

Replying to tec:

Yes it was [87] that broke everything... [91] should behave better with Rails. With the current code the way to access @flash is just flash... this change isn't necessarily permanent though :)

I've got [91], and it doesn't seem to help the @flash... issue. I can access content_for_layout (no @) just fine, but flash always throws a nil exception in my views. Any ideas? (This is a fresh, vanilla install of edge rails and markaby, as well as with the current rails version)

  Changed 2 years ago by tec

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

flash fixed in [95]. Tested with Edge Rails.

Note: See TracTickets for help on using tickets.