mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-29 10:18:29 -04:00
- Introduced crop suggestions functionality allowing users to receive tailored crop recommendations based on their location and preferences. - Implemented the ability for users to dismiss specific crop suggestions, preventing them from receiving recommendations for crops they are not interested in. - Added a location picker for users to set their gardening location, enhancing the accuracy of crop suggestions. - Enhanced the dashboard to display relevant statistics, including plantings and harvests, with comparisons to previous years. - Created new views and partials for displaying statistics, crop suggestions, and user interactions on the dashboard. - Updated routes to accommodate new features related to crop suggestions and member locations. - Added migrations for new database tables and columns to support crop dismissal and suggestion preferences. - Developed tests for the new features, ensuring functionality and user experience are maintained.
21 lines
528 B
Ruby
21 lines
528 B
Ruby
# frozen_string_literal: true
|
|
|
|
class HomeController < ApplicationController
|
|
skip_authorize_resource
|
|
respond_to :html
|
|
|
|
def index
|
|
# we were previously generating a lot of instance variables like
|
|
# @members_count and @interesting_crops in here, but now we call
|
|
# the relevant class methods directly in the view, so that fragment
|
|
# caching will be effective.
|
|
return unless member_signed_in?
|
|
|
|
@dashboard = MemberDashboard.new(current_member)
|
|
end
|
|
|
|
def community_gardens; end
|
|
|
|
def releases; end
|
|
end
|