Closed g00dL00Ks closed 8 years ago
Is this what you were looking for? I submitted a pull request and my Git commit is here: https://github.com/g00dL00Ks/ruby/commit/311ce7849b651b7f3830cc4f03657a9b2fcfa727
Total time: 1 hour
The good news is that the approval is working, which is great.
My only other question is if we can have a different message depending on where the user saves. If they check the box on the bottom of the page from your screen shot and hit submit,we want it to say "Submitted for approval!".
However if they are editing their info on #1 (Share your expertise) they will get the same message b/c it's the same form. Is there anyway to separate the messages?
For now, I've just updated the message to make it a save message.
thank you!
I should definitely be able to separate the messages.
Sent from Yahoo Mail on Android
On Fri, Jan 22, 2016 at 10:39 AM, g00dL00Ksnotifications@github.com wrote:
The good news is that the approval is working, which is great.
My only other question is if we can have a different message depending on where the user saves. If they check the box on the bottom of the page from your screen shot and hit submit,we want it to say "Submitted for approval!".
However if they are editing their info on #1 (Share your expertise) they will get the same message b/c it's the same form. Is there anyway to separate the messages?
For now, I've just updated the message to make it a save message.
thank you!
— Reply to this email directly or view it on GitHub.
@g00dL00Ks What field in Pros gets edited if the Submit for Approval box is checked and the button is pushed?
Trying to figure out a function to tell the difference between a normal update and a submission for approval.
The field is review. A boolean field tells us to review their profile for publishing
@g00dL00Ks I believe I have it working. I'm able to set two different Pro profile update messages for the main pro page depending on if the submit for review button is checked or not:
Let me know if its working for you and I submitted a pull request for the merge if it works.
Total time on issue: 2 hours
works great! I am pushing live now
On the pro show page (http://localhost:3000/pros/ID), there is a link at the bottom that let's the users submit information for review by our team. When the user selects this box, it does save in the database, but there is no save alert. I tried to add in the 'create' save function in the controller but got that it was missing the ID Params
ActionController::ParameterMissing in ProsController#show param is missing or the value is empty: pro