Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7821023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:30:57+00:00 2026-06-02T07:30:57+00:00

This is my custom page in Active Admin ActiveAdmin.register_page Settings do action_item do link_to(‘Import

  • 0

This is my custom page in Active Admin

ActiveAdmin.register_page "Settings" do

  action_item do
     link_to('Import projects', 'settings/importprojects')
  end

  content do
    para "Text"
  end

  controller do
    def importprojects
      system "rake dataspider:import_projects_ninja"
      para "OK"
    end
  end

end

What I’m trying to do is, when I click on the button ‘import projects’, I want to preform a rake task with is in the controller. But I can’t access the method.

What could be the problem or what I’m a doing wrong?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:30:58+00:00Added an answer on June 2, 2026 at 7:30 am

    Okay, found it and here is the solution:

      sidebar :actions do
        button_to "Update projects", "/admin/projects/updateprojects", :method => :post, :confirm => "Are you sure?"
      end
    
      collection_action :updateprojects, :method => :post do
        system "rake dataspider:import_projects_ninja"
        redirect_to admin_projects_path, :notice => "Syncing..."  
      end
    

    I created an button and it runs the method ‘updateprojects’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this page that has some basic custom tabs: http://demo.unlockedmanagement.com/users/view/2 * NOTE
I want add my custom sidebar next right column all page. Please check this
I have a custom search engine on a non-wordpress page. This search engine searches
I have this custom textbox that I am working on and I can use
A web service return to my flex3 client this custom exception: <SOAP-ENV:Fault xmlns:ro=urn:Gov2gLibrary xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/
Is there a standard method I can use in place of this custom method?
I have a ListView which contains custom rows. This custom row has following UI
I am leaking memory on this: my custom class: + (id)vectorWithX:(float)dimx Y:(float)dimy{ return [[[Vector
Is it possible to have nested set capabilities in this somewhat custom setup? Consider
This is my custom model binder. I have my breakpoint set at BindModel but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.