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 7039635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:49:21+00:00 2026-05-28T01:49:21+00:00

Using Rails 3.1.0, with Active Scaffold (from the git repo). My controllers have code

  • 0

Using Rails 3.1.0, with Active Scaffold (from the git repo). My controllers have code that look like this:

active_scaffold :template do |config|
  config.create.link.inline = false
  config.actions = [:list, :search, :create, :delete]
  config.columns = [
     :name, 
     :description
    ]
  config.list.sorting = { :created_at => :desc }
end

Theoretically, this means that the “create new” link at the top of the active scaffold list should be rendered without a data-remote call, but it is still being rendered like that:

<a href="/admin/templates/new" class="new" data-remote="true" id="as_admin__templates-new--link">Create New</a>

We’re also overriding _action_group.html.erb with the following, but I’ve deleted the file for testing and it has no effect. Here’s the code in the override:

<% record ||= nil
   start_level_0_tag ||= ''
   end_level_0_tag ||= ''%>
<% action_links.traverse(controller, traverse_options) do |parent, link, options| -%>
  <% if (options[:node] == :finished_traversing) -%>
    <%= "</ul>#{(options[:level] == 0 ? "</div>#{end_level_0_tag}": '</li>')}".html_safe %>
  <% elsif (options[:node] == :start_traversing) -%>
        <% html_classes = []
           html_classes << 'hover_click' if hover_via_click? %>
  <% if options[:level] == 0 %>
           <% html_classes << 'action_group' %>
     <%= "#{start_level_0_tag}<div class=\"#{html_classes.join(' ')}\" #{"onclick=\"\"" if hover_via_click?}> #{content_tag(:div, as_(parent.name), :class => (parent.name.to_s).downcase)}<ul>".html_safe %>
  <% else %>
           <% html_classes << 'top' if options[:first_action] %>
     <%= "<li #{"class=\"#{html_classes.join(' ')}\"" unless html_classes.empty?} #{"onclick=\"\"" if hover_via_click?}>#{content_tag(:div, as_(parent.name), :class => (parent.name.to_s).downcase)}<ul>".html_safe %>
  <% end %>
  <% else -%>
    <% if options[:level] == 0 %>
      <%= "#{start_level_0_tag}#{render_group_action_link(link, url_options, options, record)}#{end_level_0_tag}".html_safe %>
    <% else %>
      <%= content_tag('li', render_group_action_link(link, url_options, options, record), options[:first_action] ? {:class => 'top'}: {}) %>
    <% end %>
  <% end -%>
<% end -%>

This is happening everywhere that I try to set the config.create.link.inline. Is there some overriding setting somewhere that I need to look for?

  • 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-05-28T01:49:21+00:00Added an answer on May 28, 2026 at 1:49 am

    Do:

    config.create.link.page = true
    

    Relevant bits to reach this conclusion in helpers/view_helpers.rb and data_structures/action_link.rb.

    Because there are 3 mutually exclusive properties (page, inline, popup), setting one to false does not affect the other (analyze the control flow), only setting one to true sets the other two to false.

    “Read the source, Luke”

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

Sidebar

Related Questions

Using Rails v2.1, lets say you have an action for a controller that is
I'm using Rails 3, ActiveAdmin and Kaminari. I have this on the documents.rb file
Using Rails 3 active relation, I have a scope: scope :duplicate_contact, lambda {|contact| where(
I have a normal Rails project (without Active Record) using CouchDB (couchrest_model) as a
I have a Rails app that uses activescaffold and I would like to hide
How can I do this in rails active record¿? find all models that match
I'm using Rails 3.1 and following this railscast to implement active merchant, I'm trying
I am using Ruby on Rails with Active Admin and I have one model
I have a REST API that I am trying to access using Rails 3.0.1
I am using rails beta 3 and I have a erb page named index.html.erb

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.