On 28 November 2011 16:56, Derrick Bailey <lists@ruby-forum.com> wrote:
> Walter Davis wrote in post #1034132:
>> On Nov 28, 2011, at 10:52 AM, Derrick Bailey wrote:
>>
>>> ActiveAdmin.routes(self)
>>>
>>> devise_for :admin_users, ActiveAdmin::Devise.config
>>>
>>> resources :licenses
>>> end
>>>
>>
>> Try this:
>>
>> resources :licenses do
>> collection do
>> post 'csv_import'
>> end
>> end
>>
>> That's off the top of my head, but it should help. resources :licenses
>> just gets you the 7 RESTful actions, anything else you need to add
>> yourself, or use a wildcard map (haven't seen one of those in quite a
>> while).
>>
>> Walter
>
> Thanks this has fixed the problem, but index.html.erb doesn't display my
> import csv file button, the code i have in index.html.erb:-
I suggest starting a new thread for this as it is nothing to do with
the subject line. In the meantime have a look at the generated html
(View > Page Source or similar in the browser) and see whether your
erb is generating the correct html.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment