James Hamilton
James Hamilton
I'm having the same problem. I tried: ```rust #[macro_use] mod macros { macro_rules! my_macro { () => { println!("Check out my macro!"); }; } } fn main() { macros::my_macro!(); }...
Thankyou! So we have to get rid of the `macros::` syntax to use `#[macro_use]`.
:+1: Me too, running Rails 4.2 on Windows 7
I should also add that the call to byebug is ignored, the code just continues right past
...and almost just as strangely byebug started to work and the template continues to work properly without it. Something to do with Spring?
Yes, it gives a Charge instance. And the correct one too! It's as though Rails doesn't go to the database to find associated objects if they haven't been loaded.
I can confirm that the issue is not there if I use `fields_for`.
LOL I was struggling to put that one into context!
I swear I tried the first option without success but it's working now! Thanks for your help and attention :+1:
I've bumped into this as well, trying to decode a JSON payload where -1 is used as a flag. But practical examples aside, it just seems odd in principle that...