Displaying 20 results from an estimated 40000 matches similar to: "dependencies problem"
2013 Sep 26
2
Login Problem
Hello All,
I am getting a problem while login for inactive users.
While login I am getting -
Processing by Devise::SessionsController#new as HTML
User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2
LIMIT 1
Redirected to http://localhost:3000/
Filter chain halted as :require_no_authentication rendered or redirected.
Inactive users
2011 Jul 07
4
Question on memory usage, garbage collector, 'top' stats on linux
Hi all,
I am trying to tune and troubleshoot an application which runs a background
(delayed_job) process involving the import and processing of large csv files
into the db and then processing of that data. When I run the process (here
Ubuntu 10.04) and monitor ''top'' in the terminal, I see that ''Mem: used''
starts at maybe 500000k and then ups through the process
2012 Jul 25
0
Rails3-default_scope throws exception: undefined method abstract_class? for Object:Class
I would like to apply logical delete in my application(Instead of
permanently deleting a record just have been marked as deleted). I have
Added *available* column to all tables with default value *true*. Now I
want common place to write the following code for all models.
1.
Write the instance method which make ''available'' column value false when user clicks on
2010 Mar 07
5
Rails development processes running very slow
This is a problem I know other people have been having. I''m on Rails
2.3.5 on a dual core 2.1Ghz Macbook Pro 2.1 with 3Gb of ram and 800Mb+
inactive memory. Things should be fast. Sometimes things run slowly,
but nothing nearly as slowly as rails. irb starts in milliseconds.
Even Java maven tasks are pretty fast. Rails on the other hand takes
a pitiful 1:30 minutes to start - the
2010 Sep 20
1
Should a Gem's dependencies be listed in the parent app's Gemfile?
I am working on a Gem that has several Gem dependencies of its own.
The Gem''s .gemspec looks good (I think) and when "bundle install" is
called from the parent app, it lists that it is indeed "Using" the
Gem''s required Gems. I''ll refrain from an Inception analogy here ;)
When I fire up the app and make a request, I get "uninitialized
constant
2009 Mar 23
2
Select updates database?
I am running on Rails 2.2.2 on Solaris (and also on my mac) against
mysql. For some reason, when I use a select in the partial, the
database does not get updated with the changed value. I am using
checkbox for other fields which works perfectly.
I can provide more information if needed, but I would like the field
to work as a dropdown instead of a text field.
My Model:
2011 Mar 28
0
undefined method "load_paths" for ActiveSupport::Dependencies:Module Error
I''m writing a Rails plugin from scratch and recently generating models
inside it.
In fact, i''m trying to follow the guide from http://guides.rubyonrails.org/plugins.html
so i used the following code taken from this site in order to make the
models appear like files in the main app directory (as it was said)
this is the code:
%w{ models }.each do |dir|
path =
2010 Jun 26
1
disabling 'show status' in activerecord because of overhead of spawning process
hi,
i have a app which has a spiky activity, there a large period of
inactivity between request. With phusion-passenger after a period of
inactivity the process is killed, and when the app is respawned the
''show status'' queries take more time than the actual sql themself.
I know that ActiveRecord makes the ''show status'' query once on
spawning the server, but is
2008 Sep 05
1
ActiveScaffold :form_ui select
If I have two :form_ui select boxes, how can I make the first select
box reload the values in the second? For example,
---> [Car Maker]
-------> [Car Model]
When I change a value in the ''Car Maker'' select box, I want to display
values in the ''Car Model'' select box that only belong_to that Car
Maker.
I read another post in this group that recommended
2012 Jan 20
2
Build a ruby gem and conditionally specify dependencies
I am working on a gem that has needs to set dependencies conditionally
when the gem is installed. I''ve done some digging around
and it looks like i''m not alone in this need.
http://stackoverflow.com/questions/4596606/rubygems-how-do-i-add-platform-specific-dependency
# this is a long thread
http://www.ruby-forum.com/topic/957999
The only way I can see to add dependencies to
2013 Jun 18
1
How to Pass Jquery selected dropdown values and radio button values to controller
Hi,
I have an advance search page and its code is as follows -
I have written my code like this
<div class="container">
<%= form_tag search_index_path, method: :get do %>
<%= radio_button_tag ''user_type'', ''customer'' %><p>Customer</p>
<%= radio_button_tag ''user_type'',
2012 Feb 29
0
controller code for access to params in radio button column
I am new to Rails, and I thought I understood params, but I''m a little
fuzzy on what goes into the controller to access a third value for a
radio button. In my migration I defined the column as a string with a
default value of nil.
The column itself is actually a question(no question mark appears in the
column though)with three choices in the radio button form: yes, no, and
undecided.
2013 Jan 04
0
Add data in between Simple Form association members
Hey there,
I am trying to use Simple Form''s association to list a bunch of radio
buttons like so:
<%= simple_form_for(@applicant) do |f| %>
<%= f.association :track, :as => :radio_buttons %>
<% end %>
Assuming each track has many courses, how can I take every track from that
association and loop over its courses to display them below the radio
2013 May 27
3
Ransack, acts-as-taggable-on and checkboxes in search form
need some help on ransack filtering.
I have model Project, which has many tags through acts_as_taggable gem.
Project.rb:
class Project < ActiveRecord::Base
include PublicActivity::Common
belongs_to :customer
belongs_to :category
has_many :attachments, :as => :attachable
has_many :reports, :dependent => :destroy
has_many :messages, :dependent
2010 Oct 15
2
how to list all sessions?
I have created ActiveRecord session store in a rails 3 project:
> rake db:sessions:create
> rake db:migrate
then
Myapp::Application.config.session_store :active_record_store, :key =>
''_myapp_session''
in initializers/session_store.rb and it all works.
Now the question: how do I list ALL active sessions?
--
You received this message because you are subscribed to the
2011 Oct 29
1
Refresh tab content on click in JQuery UI Tabs
HI Guy''s
TAB1 and TAB2 have some radio button, checkbox and dropdown menu. When
TAB1 is selected, I have to switch to TAB2 and then back to TAB1 to refresh
the loaded content.
How to make TAB1 refresh loaded content when click on its tab?
*code is something like that*
<ul class="tabs">
<li><a *href="#tab1"*>Gallery</a></li>
2011 Nov 20
3
Use Ransack with radio buttons for boolean values
Hello
I''m trying to search for active and non active users. These radio buttons
work just fine except that it didn''t reselect itself after the form has
been submitted. So, what should I do to ensure it will be selected just
like how my text field populated automatically after the form has been
submitted?
= search_form_for @q do |f|
= f.radio_button :is_active_false, 1
=
2010 May 19
1
Cannot have both select and radio_button together on the same form
Hello, I''m new to Ruby on Rails.
I am creating a form for searching purpose:
<% form_for :src_cond,
:url => {:action =>''search''} do |p| %>
<%= p.radio_button("bd", "1") %> a
<%= p.radio_button("bd", "2") %> b
<%= p.select :bd2, %w[1 2 3 4],{},{:index=>nil} %>
<%=
2010 Jan 20
0
(2.3.5) ActionController::Base.session_options[:expire_after] + Error 422/Authenticity Token Issue
I''m getting ready to put an app into production and I''ve found a
strange issue that, as far as I know, shouldn''t be happening. To me
this looks like it could be a bug, but I''m not sure and I''m hoping
some one here can tell me if they''ve seen this before, or can idiot-
check me in that hopefully it''s just something I''ve missed
2010 May 11
1
Gem::Dependency#version_requirements is deprecated...
Seen when running scripts/console, Ruby version not important.
What is this telling me?
Loading development environment (Rails 2.3.5)
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/
gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is
deprecated and will be removed on or after August 2010. Use
#requirement
Checking gem_dependency.rb shows:
118: def requirement