igorkasyanchuk / rails_db

Rails Database Viewer and SQL Query Runner
https://www.railsjazz.com/
MIT License
1.46k stars 111 forks source link

Edit not working #75

Closed eshaiju closed 7 years ago

eshaiju commented 7 years ago

ActionView::Template::Error (undefined method `map' for "order":String Did you mean? tap): 7: <% @record.class.columns.each do |column| %> 8: <% name = column.name %> 9: <% next if name == @table.primary_key %> 10: <%= form.input name, label: name %> 11: <% end %> 12:

13: <%= form.submit 'SAVE', class: 'button small' %>

igorkasyanchuk commented 7 years ago

Show me your gem lock file. Thanks

bbenezech commented 7 years ago

Closing for lack of information, please re-open if needed.

sveredyuk commented 1 year ago

Hi, I have a similar issue. Record edit throws 500 error and in logs:

ActionView::Template::Error (No input found for binary):
    18:           <% options[:input_html][:cols] = 80 %>
    19:         <% end %>
    20:
    21:         <%= form.input name, options %>
    22:       <% end %>
    23:     </div>
    24:     <%= form.submit 'SAVE', class: 'button small' %>

My Gemfile.lock:

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (6.1.4.1)
      actionpack (= 6.1.4.1)
      activesupport (= 6.1.4.1)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
    actionmailbox (6.1.4.1)
      actionpack (= 6.1.4.1)
      activejob (= 6.1.4.1)
      activerecord (= 6.1.4.1)
      activestorage (= 6.1.4.1)
      activesupport (= 6.1.4.1)
      mail (>= 2.7.1)
    actionmailer (6.1.4.1)
      actionpack (= 6.1.4.1)
      actionview (= 6.1.4.1)
      activejob (= 6.1.4.1)
      activesupport (= 6.1.4.1)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (6.1.4.1)
      actionview (= 6.1.4.1)
      activesupport (= 6.1.4.1)
      rack (~> 2.0, >= 2.0.9)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.2.0)
    actiontext (6.1.4.1)
      actionpack (= 6.1.4.1)
      activerecord (= 6.1.4.1)
      activestorage (= 6.1.4.1)
      activesupport (= 6.1.4.1)
      nokogiri (>= 1.8.5)
    actionview (6.1.4.1)
      activesupport (= 6.1.4.1)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.1, >= 1.2.0)
    activejob (6.1.4.1)
      activesupport (= 6.1.4.1)
      globalid (>= 0.3.6)
    activemodel (6.1.4.1)
      activesupport (= 6.1.4.1)
    activerecord (6.1.4.1)
      activemodel (= 6.1.4.1)
      activesupport (= 6.1.4.1)
    activestorage (6.1.4.1)
      actionpack (= 6.1.4.1)
      activejob (= 6.1.4.1)
      activerecord (= 6.1.4.1)
      activesupport (= 6.1.4.1)
      marcel (~> 1.0.0)
      mini_mime (>= 1.1.0)
    activesupport (6.1.4.1)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (>= 1.6, < 2)
      minitest (>= 5.1)
      tzinfo (~> 2.0)
      zeitwerk (~> 2.3)
    addressable (2.8.0)
      public_suffix (>= 2.0.2, < 5.0)
    ast (2.4.2)
    awesome_print (1.9.2)
    aws-eventstream (1.2.0)
    aws-partitions (1.541.0)
    aws-sdk-core (3.124.0)
      aws-eventstream (~> 1, >= 1.0.2)
      aws-partitions (~> 1, >= 1.525.0)
      aws-sigv4 (~> 1.1)
      jmespath (~> 1.0)
    aws-sdk-kms (1.52.0)
      aws-sdk-core (~> 3, >= 3.122.0)
      aws-sigv4 (~> 1.1)
    aws-sdk-s3 (1.109.0)
      aws-sdk-core (~> 3, >= 3.122.0)
      aws-sdk-kms (~> 1)
      aws-sigv4 (~> 1.4)
    aws-sigv4 (1.4.0)
      aws-eventstream (~> 1, >= 1.0.2)
    bcrypt (3.1.16)
    bootsnap (1.9.3)
      msgpack (~> 1.0)
    builder (3.2.4)
    coderay (1.1.3)
    concurrent-ruby (1.1.9)
    connection_pool (2.2.5)
    crack (0.4.5)
      rexml
    crass (1.0.6)
    diff-lcs (1.4.4)
    docile (1.4.0)
    domain_name (0.5.20190701)
      unf (>= 0.0.5, < 1.0.0)
    dotenv (2.7.6)
    dotenv-rails (2.7.6)
      dotenv (= 2.7.6)
      railties (>= 3.2)
    erubi (1.10.0)
    et-orbi (1.2.6)
      tzinfo
    ez-core (0.2.0)
    ez-permissions (0.7.0)
      ez-core (~> 0.2)
      rails (>= 5.2, <= 7.0)
    ez-sessions (0.1.0)
      ez-core (~> 0.2)
      jwt (~> 2.2)
      rails (>= 5.2, <= 7.0)
    factory_bot (6.2.0)
      activesupport (>= 5.0.0)
    factory_bot_rails (6.2.0)
      factory_bot (~> 6.2.0)
      railties (>= 5.0.0)
    fakeredis (0.8.0)
      redis (~> 4.1)
    fast_jsonparser (0.5.0)
    ffaker (2.20.0)
    ffi (1.15.4)
    ffi-compiler (1.0.1)
      ffi (>= 1.0.0)
      rake
    formatador (0.3.0)
    friendly_id (5.4.2)
      activerecord (>= 4.0.0)
    fugit (1.5.2)
      et-orbi (~> 1.1, >= 1.1.8)
      raabro (~> 1.4)
    globalid (1.0.0)
      activesupport (>= 5.0)
    goldiloader (4.1.2)
      activerecord (>= 5.2, < 7.1)
      activesupport (>= 5.2, < 7.1)
    graphql (1.13.1)
    graphql-rails_logger (1.2.3)
      actionpack (> 5.0)
      activesupport (> 5.0)
      railties (> 5.0)
      rouge (~> 3.0)
    guard (2.18.0)
      formatador (>= 0.2.4)
      listen (>= 2.7, < 4.0)
      lumberjack (>= 1.0.12, < 2.0)
      nenv (~> 0.1)
      notiffany (~> 0.0)
      pry (>= 0.13.0)
      shellany (~> 0.0)
      thor (>= 0.18.1)
    guard-compat (1.2.1)
    guard-rspec (4.7.3)
      guard (~> 2.1)
      guard-compat (~> 1.1)
      rspec (>= 2.99.0, < 4.0)
    hashdiff (1.0.1)
    http (5.0.4)
      addressable (~> 2.8)
      http-cookie (~> 1.0)
      http-form_data (~> 2.2)
      llhttp-ffi (~> 0.4.0)
    http-cookie (1.0.4)
      domain_name (~> 0.5)
    http-form_data (2.3.0)
    i18n (1.8.11)
      concurrent-ruby (~> 1.0)
    jmespath (1.4.0)
    jwt (2.3.0)
    kaminari (1.2.2)
      activesupport (>= 4.1.0)
      kaminari-actionview (= 1.2.2)
      kaminari-activerecord (= 1.2.2)
      kaminari-core (= 1.2.2)
    kaminari-actionview (1.2.2)
      actionview
      kaminari-core (= 1.2.2)
    kaminari-activerecord (1.2.2)
      activerecord
      kaminari-core (= 1.2.2)
    kaminari-core (1.2.2)
    launchy (2.5.0)
      addressable (~> 2.7)
    letter_opener (1.7.0)
      launchy (~> 2.2)
    listen (3.7.0)
      rb-fsevent (~> 0.10, >= 0.10.3)
      rb-inotify (~> 0.9, >= 0.9.10)
    llhttp-ffi (0.4.0)
      ffi-compiler (~> 1.0)
      rake (~> 13.0)
    loofah (2.13.0)
      crass (~> 1.0.2)
      nokogiri (>= 1.5.9)
    lumberjack (1.2.8)
    mail (2.7.1)
      mini_mime (>= 0.1.1)
    marcel (1.0.2)
    method_source (1.0.0)
    mini_mime (1.1.2)
    minitest (5.14.4)
    msgpack (1.4.2)
    nenv (0.3.0)
    newrelic_rpm (8.2.0)
    nio4r (2.5.8)
    nokogiri (1.13.1-aarch64-linux)
      racc (~> 1.4)
    nokogiri (1.13.1-arm64-darwin)
      racc (~> 1.4)
    nokogiri (1.13.1-x86_64-darwin)
      racc (~> 1.4)
    notiffany (0.1.3)
      nenv (~> 0.1)
      shellany (~> 0.0)
    pagy (4.11.0)
    parallel (1.21.0)
    parser (3.0.3.2)
      ast (~> 2.4.1)
    pg (1.2.3)
    pry (0.14.1)
      coderay (~> 1.1)
      method_source (~> 1.0)
    pry-rails (0.3.9)
      pry (>= 0.10.4)
    public_suffix (4.0.6)
    puma (5.5.2)
      nio4r (~> 2.0)
    raabro (1.4.0)
    racc (1.6.0)
    rack (2.2.3)
    rack-cors (1.1.1)
      rack (>= 2.0.0)
    rack-test (1.1.0)
      rack (>= 1.0, < 3)
    rails (6.1.4.1)
      actioncable (= 6.1.4.1)
      actionmailbox (= 6.1.4.1)
      actionmailer (= 6.1.4.1)
      actionpack (= 6.1.4.1)
      actiontext (= 6.1.4.1)
      actionview (= 6.1.4.1)
      activejob (= 6.1.4.1)
      activemodel (= 6.1.4.1)
      activerecord (= 6.1.4.1)
      activestorage (= 6.1.4.1)
      activesupport (= 6.1.4.1)
      bundler (>= 1.15.0)
      railties (= 6.1.4.1)
      sprockets-rails (>= 2.0.0)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.4.2)
      loofah (~> 2.3)
    rails_db (2.4.1)
      activerecord
      kaminari
      rails (>= 5.0.0)
      ransack (>= 2.3.2)
      simple_form (>= 5.0.1)
      terminal-table
    railties (6.1.4.1)
      actionpack (= 6.1.4.1)
      activesupport (= 6.1.4.1)
      method_source
      rake (>= 0.13)
      thor (~> 1.0)
    rainbow (3.0.0)
    rake (13.0.6)
    ransack (3.1.0)
      activerecord (>= 6.0.4)
      activesupport (>= 6.0.4)
      i18n
    rb-fsevent (0.11.0)
    rb-inotify (0.10.1)
      ffi (~> 1.0)
    redis (4.5.1)
    regexp_parser (2.2.0)
    rexml (3.2.5)
    rouge (3.26.1)
    rspec (3.10.0)
      rspec-core (~> 3.10.0)
      rspec-expectations (~> 3.10.0)
      rspec-mocks (~> 3.10.0)
    rspec-core (3.10.1)
      rspec-support (~> 3.10.0)
    rspec-expectations (3.10.1)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.10.0)
    rspec-mocks (3.10.2)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.10.0)
    rspec-rails (5.0.2)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
      railties (>= 5.2)
      rspec-core (~> 3.10)
      rspec-expectations (~> 3.10)
      rspec-mocks (~> 3.10)
      rspec-support (~> 3.10)
    rspec-support (3.10.3)
    rubocop (1.23.0)
      parallel (~> 1.10)
      parser (>= 3.0.0.0)
      rainbow (>= 2.2.2, < 4.0)
      regexp_parser (>= 1.8, < 3.0)
      rexml
      rubocop-ast (>= 1.12.0, < 2.0)
      ruby-progressbar (~> 1.7)
      unicode-display_width (>= 1.4.0, < 3.0)
    rubocop-ast (1.15.0)
      parser (>= 3.0.1.1)
    rubocop-rails (2.12.4)
      activesupport (>= 4.2.0)
      rack (>= 1.1)
      rubocop (>= 1.7.0, < 2.0)
    rubocop-rspec (2.6.0)
      rubocop (~> 1.19)
    ruby-progressbar (1.11.0)
    scenic (1.6.0)
      activerecord (>= 4.0.0)
      railties (>= 4.0.0)
    shellany (0.0.1)
    shoulda-matchers (5.0.0)
      activesupport (>= 5.2.0)
    sidekiq (6.2.2)
      connection_pool (>= 2.2.2)
      rack (~> 2.0)
      redis (>= 4.2.0)
    sidekiq-cron (1.2.0)
      fugit (~> 1.1)
      sidekiq (>= 4.2.1)
    sidekiq-statistic (1.4.0)
      sidekiq (>= 5.0)
      tilt (~> 2.0)
    simple_form (5.2.0)
      actionpack (>= 5.2)
      activemodel (>= 5.2)
    simplecov (0.21.2)
      docile (~> 1.1)
      simplecov-html (~> 0.11)
      simplecov_json_formatter (~> 0.1)
    simplecov-html (0.12.3)
    simplecov_json_formatter (0.1.3)
    spring (2.1.1)
    sprockets (4.0.2)
      concurrent-ruby (~> 1.0)
      rack (> 1, < 3)
    sprockets-rails (3.4.2)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
      sprockets (>= 3.0.0)
    terminal-table (3.0.2)
      unicode-display_width (>= 1.1.1, < 3)
    thor (1.1.0)
    tilt (2.0.10)
    timecop (0.9.4)
    tzinfo (2.0.4)
      concurrent-ruby (~> 1.0)
    unf (0.1.4)
      unf_ext
    unf_ext (0.0.8)
    unicode-display_width (2.1.0)
    vcr (6.0.0)
    webmock (3.14.0)
      addressable (>= 2.8.0)
      crack (>= 0.3.2)
      hashdiff (>= 0.4.0, < 2.0.0)
    websocket-driver (0.7.5)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    zeitwerk (2.5.1)

PLATFORMS
  aarch64-linux
  arm64-darwin-20
  arm64-darwin-21
  x86_64-darwin-21

DEPENDENCIES
  awesome_print (~> 1.9)
  aws-sdk-s3 (~> 1)
  bcrypt (~> 3.1)
  bootsnap (~> 1.8)
  dotenv-rails
  ez-permissions (~> 0.7.0)
  ez-sessions (~> 0.1.0)
  factory_bot_rails
  fakeredis (~> 0.8.0)
  fast_jsonparser (~> 0.5)
  ffaker (~> 2.19)
  friendly_id (~> 5.4.0)
  goldiloader (~> 4.1)
  graphql (~> 1.12)
  graphql-rails_logger (~> 1.2.3)
  guard-rspec (~> 4.7)
  http (~> 5.0)
  jwt (~> 2.3)
  letter_opener (~> 1.7)
  listen (~> 3.3)
  newrelic_rpm (~> 8.0)
  pagy (~> 4.11)
  pg (~> 1.2)
  pry-rails (~> 0.3.9)
  puma (~> 5.4)
  rack-cors (~> 1.1)
  rails (= 6.1.4.1)
  rails_db (>= 2.3.1)
  rspec-rails (~> 5.0)
  rubocop (~> 1.20)
  rubocop-rails (~> 2.11)
  rubocop-rspec (~> 2.4)
  scenic (~> 1.6)
  shoulda-matchers (~> 5.0)
  sidekiq (~> 6.2.1)
  sidekiq-cron (~> 1.2)
  sidekiq-statistic (~> 1.4)
  simplecov (~> 0.21.2)
  spring (~> 2.1)
  sprockets-rails
  timecop (~> 0.9.4)
  tzinfo-data
  vcr (~> 6.0)
  webmock (~> 3.14)

RUBY VERSION
   ruby 3.0.3p157

BUNDLED WITH
   2.2.32
igorkasyanchuk commented 1 year ago

Binary can't be edited I think. So maybe fork and exclude your field, it can be a good contribution if you can make a settings to skip some fields