My problem is that i have logic in my view but every case have different styleing. It`s not problem to move logic to .ex presenter but how to deal with styleing
- trumps.each do |trump|
%tr
%td
- if trump.isgreate
.some_style
.some_style--button
=link_to trump.picture
- else
.someother_style
.someother_style--button
=link_to trump.lies
What about css classes?
Styling is not supposed to be done in controllers or models anyway.
Although for any answer to be relevant you have to provide your development environment. Such as the ruby and rails version you're using, and even your operating system...things can be really different depending on this.
Normally people aren't going to try to help you, but I was once like this and asked questions without first looking things up.
For Rails 6, add a css file to app/assets/stylesheets. You should see something like this in your application.html.erb file (global view file)
Use your controllers to handle user input and set variables/pull model data for your views.
Good luck buddy.