diff --git a/.gitignore b/.gitignore index c74c95e..7280ca4 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ *.swp .env +.idea/* diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index aa69dc7..4f0f745 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -11,6 +11,10 @@ def display_date(date) date.to_formatted_s(:long_ordinal) end + def wishlist_url(wishlist) + request.base_url+"/wishlists/#{wishlist.id}" + end + private def current_user_pronouns(user, perspectives, capitalize: true) diff --git a/app/views/wishlists/new.html.erb b/app/views/wishlists/new.html.erb index 5475c3a..70f3822 100644 --- a/app/views/wishlists/new.html.erb +++ b/app/views/wishlists/new.html.erb @@ -1,6 +1,6 @@