-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
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
Add table for weather observation (Stacked PR) #3452
base: dev
Are you sure you want to change the base?
Conversation
flash[:notice] = I18n.t('weather_observations.created') if @weather_observation.save | ||
respond_with(@weather_observation) | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected trailing spaces found.
flash[:notice] = I18n.t('weather_observations.updated') if @weather_observation.update(weather_observation_params) | ||
respond_with(@weather_observation) | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected trailing spaces found.
flash[:notice] = I18n.t('weather_observations.deleted') | ||
redirect_to(member_weather_observations_path(@weather_observation.owner)) | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected trailing spaces found.
end | ||
|
||
private | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected trailing spaces found.
params.require(:weather_observation).permit! | ||
end | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected a newline at the end of the file.
params.require(:weather_observation).permit! | ||
end | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected trailing spaces found.
= render 'weather_observations/actions', weather_observation: weather_observation | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected trailing spaces found.
%strong= @weather_observation | ||
.col-md-3.col-12 | ||
= render 'weather_observations/actions', weather_observation: @weather_observation | ||
.row |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line was indented 2 levels deeper than the previous line.
@@ -0,0 +1,18 @@ | |||
- if can?(:edit, garden) | |||
.dropdown.garden-actions | |||
%a#garden-actions-button.btn.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", type: "button", href: '#'} Actions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [167/120]
@@ -0,0 +1,18 @@ | |||
- if can?(:edit, garden) | |||
.dropdown.garden-actions | |||
%a#garden-actions-button.btn.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", type: "button", href: '#'} Actions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hash attribute should start with one space after the opening brace
#3453 first
A small part of:
#1165
#863
Also kind of like:
https://github.com/Growstuff/growstuff/pull/1307/files
Based on schemaorg/schemaorg#362
The idea would be to only record specific observations, with a source that have happened.
Ideally this would be from either:
Use cases:
As gardener with various observation tools
I would like to record a snapshot of weather (manually)
So that I have a history of what was happening in my own microclimate
And I can compare to crop yields.
As gardener with home automation
I would like to record a snapshot of weather
So that I have a history of what was happening in my own microclimate
And I can compare to crop yields.