top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Generic route in rails4

+2 votes

I'd like to implement (Rails 4) a very high level (generic) abstract controller, able to manage any route and then create a viewer on the fly.

I'd like to call it 'abstracts', and being able to call as


something like




I'm not sure on the best way to define the correct route, and how to generate the model and the view code on the fly, after getting the definition in the controller from the DB.

Any suggestion is appreciated.

posted Sep 15, 2014 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

I have a default message in a form ( I used the placeholder attribute).
Unfortunately, when I submit a form it doesnt like this attribute (that field must appear blank), because if I type over it it works.

Is there something else I should use besides the placeholder attribute?

0 votes

I was reading the docs for primary key on postgresql and I saw that there was a way to add a custom stored procedure that returns a UUID. There is a test case as well that uses a custom uuid generator**********cf1762922d330a8/activerecord/test/cases/adapters/postgresql/uuid_test.rb#L193

But I was not sure how to to implement this myself. Like in the test case where do I place my_uuid_generator() and how to implement it in my rails application?

+1 vote

Am trying to send email with yahoo mail but it is not working but, with gmail works fine can someone correct me if anything is wrong in my smtp.

 :port: 587
 :password: test
 :authentication: plain
 :enable_starttls_auto: true
 :domain :