Gareth Gomersall

Joined

320 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Simple newsletter sign up?

Thanks James, i got it sorted, i misspelt the names of the images... DOH!

Posted in Simple newsletter sign up?

Actually chris... that wasn't the issue.. urgh! but i did figure out what was the problem....

the - <%= form_for @lead do |f| %> needed to be outside of the form divs i.e. before (form class="form-horizontal center")

does that make sense... anyway i've got it working now.... phew!!! So enough harassment from me, for now haha

Cheers
Gareth

Posted in Simple newsletter sign up?

Thanks for the headsup re the images James...

Chris,
I've figured it out... my button for submit, was just ----
div class="form-group-lg">
div class="col-md-offset-4 col-md-4 formspace">
button type="submit" class="btn btn-primary btn-lg">Submit
/div>
/div>

instead of -----
div class="form-group-lg">
div class="col-md-offset-4 col-md-4 formspace">
%= f.submit 'Submit'%>
/div>
/div>

It's amazing what how such a simple thing can ruin everything else haha

Cheers for the video again....

Gareth

Posted in Simple newsletter sign up?

ok i'll watch it again and see what's cracking! :)

Posted in Simple newsletter sign up?

Hey Chris,

So i went through the video over the weekend, and i thought i had got it sussed out... however i find that when i submit my form nothing saves in the database.... locally or on my heroku test site....

It seems as though when i submit the form, i get a long link in the address bar i.e.

https://nibliapp.herokuapp.com/?utf8=%E2%9C%93&authenticity_token=%2B0V7rJ2zPOzliXW4F1FCYjxT8diw4R07VDOavzWfzWc%3D&lead%5Bname%5D=Gareth&lead%5Bemail%5D=ggomersall%40gmail.com&lead%5Bdevice%5D=Android&lead%5Bcountry%5D=AF

this happens locally as well

Perhaps you can give a bit of feed back see links below, any would be much appreciated (but not limited to Chris, I know there are some other very switched on guys on this forum :) )

Github:
https://github.com/ggomersall/Nibli_leads

Heroku app:
https://nibliapp.herokuapp.com

I've installed activeadmin without devise, you can check out the leads on there as well:
https://nibliapp.herokuapp.com/admin/leads

Again any help would be much appreciated...

Cheers
Gareth

Posted in Simple newsletter sign up?

Hey Chris... I've watched the video and it's awesome, just what i was looking for... and couldn't see any where online to do it.

I'm going to watch the video again and then put it into practice.

Thanks again for creating this video, you're a legend!

Cheers
Gareth

Posted in Simple newsletter sign up?

Hey Chris....

Awesome that you replied to this so quick :)

To be honest, everything about this seems daunting haha. I've done the one month rails course, but i still seem to hit a brick wall and go completely blank when ever i'm trying to get into a new app in rails... It's the same for another app that i'm working on (which is purely web based).

For the device option, I think i would prefer like a dropdown with the two devices listed that the user can select (same as for the country i.e. dropdown with all countries listed) .

A screen cast for this would be wicked! i've got the html and css for this page all done, but it's just this little piece of work that's kicking my ass!

Cheers again for the quick reply and the offer of a screen cast :)
Gareth

Posted in Simple newsletter sign up?

Hey Chris and all other members of this forum....

I'm trying to create a single page rails site, for a new app that i'm trying to build myself (it's called Nibli, and it's on nibliapp.com).

I've been scouting the net everywhere to get some information on building a newsletter signup form on the home page i.e. to store data in a database that can be accessed by me later with details like - name, email, device (i.e. iPhone or Android) and country... However i have no clue where to start in building this controller and model for the newsletter (which is what i'm assuming i would need to do).

I don't want it to link to mail chimp, i'd like it to have a local database on the server from which i can get this info.... for later use.

Cheers for any help in advance
Gareth

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.