Questions tagged [actionpack]

Web apps on Rails. Simple, battle-tested conventions for building and testing MVC web applications. Works with any Rack-compatible server.

74 questions
0
votes
3 answers

Rails Redirect fails after delete. (Delete is successful but display of remaining records does not happen)

When a user calls the users_path view, all users are rendered correctly in the display. However I also redirect to index after a delete. The console indicates a 200 Ok but then the index is not rendered. Trying to step through some of the rails…
dukha
  • 69
  • 5
0
votes
0 answers

How to resolve the conflict issue of using actionpack in rails application

I have come here as my last resort to seek answer of my problem. My rails app is dependent on ruby-2.0.0 and rails 4.1.4(although I can go back to previous releases but not the one have to in order to resolve the issue) and I am trying to use gem…
zeal
  • 465
  • 2
  • 11
  • 22
0
votes
1 answer

How come helper.distance_of_time_in_words_to_now Time.now works in development but not production

I can call helper.distance_of_time_in_words_to_now Time.now in development and it works just fine, but for some reason in production I am now getting translation missing: en.datetime.distance_in_words.less_than_x_minutes What can I do to fix…
Cyrus
  • 3,687
  • 5
  • 35
  • 67
0
votes
1 answer

caches_action undefined for controller in rails engine

I've a Rails4 app a mounted rails 4 engine MyEngine with a controller MyController I've defined multiple actions in the controller for caching as follows, module MyEngine require 'actionpack/action_caching' class MyController <…
0
votes
1 answer

Active admin in Rails 4 throws error "Invalid option key"

Rails 4 app working just fine until Active Admin is included (from this thread) in the gemfile. My Gemfile: gem 'rails', '4.0.0' gem 'rails_12factor', group: :production gem 'pg' gem 'sass-rails', '~> 4.0.0.rc1' gem 'uglifier', '>= 1.3.0' gem…
0
votes
0 answers

rails route not working but not sure why

Another adopted rails app issue. I have the following in my routes.rb file. It is currently not working (not sure if it ever was). We have upgraded from 3.1 -> 3.2.13 scope '/arc' do match '/api/get-images-by-location/:global_id' =>…
timpone
  • 19,235
  • 36
  • 121
  • 211
0
votes
1 answer

Sinatra error: "Gem::LoadError: Unable to activate actionpack-3.2.3, because activesupport-3.2.8 conflicts with activesupport (= 3.2.3) "

I would like to comma delimit large numbers in my Sinatra app, so I did some Googling and found that I can do so by adding the following: require 'action_view/helpers/number_helper' Then, it seems I am supposed to be able to do things like:…
tonic
  • 453
  • 1
  • 6
  • 21
0
votes
1 answer

wash_out parse failures: SOAP errors instead of HTML errors

So, when you use the wash_out gem in Rails, and a client sends bad XML, the response is like: …

REXML::ParseException

… Instead of a correct SOAP response, like this:
rking
  • 1,602
  • 1
  • 10
  • 8
0
votes
1 answer

TFS 2012 Licensing via Action Pack

I currently have an Microsoft Action Pack but I don't see a license for TFS included in it. What would be the best way of getting TFS 2012 Server installed and access for 6 devs and 2 Web access users. I've read the Microsoft Licensing White Papers…
user1266921
  • 225
  • 3
  • 14
0
votes
1 answer

Getting attributes in nested model rails 3.2

I have two models user and profile. I want to save the username and password in user and other user profile details in profile. Now, The user model has: has_one :profile accepts_nested_attributes_for :profile attr_accessible :email,…
Chirag Rupani
  • 1,675
  • 1
  • 17
  • 37
0
votes
1 answer

Accessing more than one active records in action controller in rails 3

suppose I have 2 models: 1. user and 2. userProfile we have one-to-one relationship between 2 models. Then,I would like to create Usercontroller and create user with fields such as username and password in user and other details like address,…
Chirag Rupani
  • 1,675
  • 1
  • 17
  • 37
0
votes
1 answer

how do I separate user params vs Action Pack params?

I have a Rails application where user parameters are all provided via a RESTful API with JSON parameters. Specifically, there is no client-side HTML form from which the user posts data: it's raw JSON. So to create a new Car entry, the user…
fearless_fool
  • 33,645
  • 23
  • 135
  • 217
-1
votes
1 answer

How to generate a form that edit and creates all the records of a model in Ruby on Rails?

I have a model that stores template data and is independent with other models. I want to construct a form where I can view all the records of that model, edit them, delete them and also create a new records. Since rails form helper requires a…
-1
votes
1 answer

An error occurred while installing actionpack (5.0.2), and Bundler cannot continue

I get a error when I execute rails new myprojectname: Gem::RemoteFetcher::FetchError: Errno::ETIMEDOUT: Operation timed out - SSL_connect (https://rubygems.org/gems/actionpack-5.0.2.gem) An error occurred while installing actionpack (5.0.2),…
three-blocks
  • 353
  • 1
  • 4
  • 20
1 2 3 4
5