Stefanos I.
2014-Jan-23 23:18 UTC
[Need advice] Dynamic URL pointing at controllers action
First of all sorry for the confusing title. I don't really know how to explain what I want to do in one line. I am creating a Rails website in which Developers will be able to be listed and create profiles. In the profile page, users will be able to upload their projects into their portfolio. Then the customer(s) (whom the developer created this project for) will be able to submit a testimonial on that particular project. My goal is that only that customer will be able to submit an endorsement on the project added to the portfolio. As I said, I only need the specific customer to be able to submit a testimonial so what I thought is that the user will input the customer's email on a form and then the customer will receive an email with a dynamic link to the website for making the testimonial. This link should point to testimonial's new action so that the customer will be able to submit the endorsement. My issue right now is how do I do something like that in Rails? How will I create a dynamic link to point to the page that will render testimonial form? Also another idea is to just send (via email) a PIN code to the customer so he will just need to input the correct PIN in order that the endorsement will be created. I am also open to ideas. I like simple implementations so if you have one in mind, please feel free to share :) Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/acace027a233a92ecdeb847aff99443a%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.