search for: admin_posts

Displaying 3 results from an estimated 3 matches for "admin_posts".

2010 Mar 20
1
[PATCH] AR migration generator includes model's modules in table name. [#4230]
Hello! Could someone review the patch attached to [1] and provide feedback? Briefly, it targets rails 3, and fixes "rails g model admin/post". The generated migration creates a "admin_posts" table while the model expects a table simply named "posts". With the patch, the migration creates "posts". Thank you! --phil-- [1] https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4230 -- You received this message because you are subscribed to the...
2007 Jul 12
0
routing question
...lly use (know) all the extra rails stuff much, so I really just want activerecord and an MVC pattern. Perfect! So, one of my requirements is usually to have a separate admin interface. What would be the recommended way to do this using merb? eg: r.resources :posts # for the public r.resources :admin_posts # for the admin section It would be nice to simply have a namespace, such as in rails where I''d so something like: r.resources :posts, :path_prefix => "admin", :controller => "admin/products", :name_prefix => "admin" However, it doesn''t lo...
2008 May 04
1
scaffolding with namespace
Hi, is there a way to scaffold with namespace? I''d like to generate a Posts model with namespace admin. But using script/generate scaffold admin/post title:string the migration would generate a table "admin_posts". So I did now script/generate scaffold post title:string moved the controller, views manually to admin/... and had to change each link manually from (e.g.) redirect_to @post to redirect_to(admin_post_path(@post)) I think there has to be a simpler way. Tia, Martin --~--~---------~--~---...