We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't know if is a bug but I have the following Cell
class SchedulesCell < Cell::ViewModel def show render end def daily render end def weekly render end def planning model end end
So I have anothers 2 cell's partials called daily abd weekly In my show.erb I have
<% case planning.activity.a_type %> <% when '0' %> <%= daily %> <% else %> <%= weekly %> <% end %>
and in daily.erb and weekly.erb I have pure text.
Very simple isn't it? But it doesn't work. It gaves me
undefined method `[]' for nil:NilClass
If I use if instead of case it works. Am I missing something or there is a bug?
if
case
The text was updated successfully, but these errors were encountered:
Try to use case statement like described here:
<% case planning.activity.a_type when '0' %> <%= daily %> <% else %> <%= weekly %> <% end %>
Sorry, something went wrong.
No branches or pull requests
I don't know if is a bug but I have the following Cell
So I have anothers 2 cell's partials called daily abd weekly
In my show.erb I have
and in daily.erb and weekly.erb I have pure text.
Very simple isn't it? But it doesn't work. It gaves me
If I use
if
instead ofcase
it works.Am I missing something or there is a bug?
The text was updated successfully, but these errors were encountered: