Changes I make to my extension controllers do not apply in the application. What's that about?

StackOverflow https://stackoverflow.com/questions/7691306

  •  07-02-2021
  •  | 
  •  

Frage

I'm using the common radiant extension, Mailer, and no changes whatsoever I make to the controller effect the application. I can in fact delete the entire controller, and it will still run flawlessly. I wish all my applications worked like that!

What am I missing to be able to alter the way this application works?

I do not have a duplicate of this running as a gem in my environment file.

War es hilfreich?

Lösung

Kind of "late to the party", but:

The mailer extension has a config setting Radiant::Config['mailer.post_to_page?']

Depending on that, the mailer form will post to the page itself, or to the MailController. When posting to the page, the controller will indeed not be used. Instead, page.process_with_mailer will be called. See lib/mailer_process.rb

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top