I generated mailboxer email view templates with rails g mailboxer:views. However no matter how I change these templates my mailboxer emails remain the same. Am I doing something wrong or is this a bug?
The problem is, that the rails g mailboxer:views created proper folders, but in the wrong directory. It created them in the app/views folder instead of app/views/mailboxer. If you have the same issues just move the message_mailer folder inside the mailboxer folder.
Related
Devise works. I can login and log out, but there are no views in the my project. There is no app/views/devise folder. When I used rails g devise:views nothing appeared. How is Devise even working if there is no html, and how can I get these views to display in my project so I can edit them?
If files are not added, the files added into your gem folder and Devise will use them, but when you run the command, the created folder will just overwrite them.
If rails g devise:views still not working for you, one easy way to do this instead of trying to find what was the issue with the gem or Terminal is to just move them yourself.
Here you have the files Devise views, just copy paste them into your folder and you will be good.
Go to the application root directory and run following command to get views of devise:
rails g devise:views
I read on the documentation that you have to put this line in config/initializers/devise.rb
config.scoped_views = true
you will have access to the file for sessions,
and you can do too :
rails generate devise:views users
to have access to user files
You should take a look : https://github.com/plataformatec/devise
Hope that help
I generated views using this command
rails g bootstrap:themed Todo
it generated several views for my model.
I am using git and reverted the project to its former branch without the boostrap.
Now, I am trying to regenerate the views but it always returns this
identical app/views/manifests/index.html.erb
How do I force the bootstap generator to regenerate the views for my project?
TIA
I was able to work it out by moving my project into another directory, preferably into a different folder.
I'm using Mailboxer into my app but I'm having some problems with the generated views (with rails g mailboxer:views). Seems to be the internal Mailboxer mailer are using some "hidden" templates and any changes over the existing views are not reflected on the sent emails.
Can anyone help me with that? One known alternative could be to program my own mailer class, but I think that it's a bit more of work to achieve the same thing.
Thanks.
It may be a bug. I am experiencing the same thing:
https://github.com/mailboxer/mailboxer/issues/324
The origin of the problem is that "rails g mailboxer:views" copies the gem templates folders into "app/views" folder and the engine searches inside app/views/mailboxer.
The solution consists in moving the two generated (message_mailer and notification_mailer) folders into a subfolder "app/views/mailboxer".
I'm working on a rails app and to modify the layout of devise pages i used on the root of my rails application
rails g devise:views
so in the directory
app/views
i have all the files of the devise gem.
now that my work is ended i would like to hide those files again maintaining the modifies , how can i do it?
if you know even a way to only hide password it could also work
i didn't found any help in the README file for the plugins
I just added users to my application using devise, and everything is working fine. But I can't see any folder of the type /views/users where I can change the new.html.erb and edit.html.erb to add new fields?
Does anyone know where these files would be located?
run
rails generate devise:views
that will place the view files in the views directory
From the docs:
Since Devise is an
engine, all its views are packaged
inside the gem. These views will help
you get started, but after sometime
you may want to change them. If this
is the case, you just need to invoke
the following generator, and it will
copy all views to your application: rails generate devise:views
You should run rails generate devise:views task to generate views