Displaying 20 results from an estimated 10000 matches similar to: "Trigger before save and after save from external process?"
2014 May 19
0
Can ActiveRecord::Base.connection.schema_search_path be set per process?
I am building an app that every company has it own private
schema(Postgresql).
For every requisition, I set the Postgres search path in a before_action
like this:
ActiveRecord::Base.connection.schema_search_path = 'company_id, public'
If I have multiple Unicorn workers, and one worker 'A' set the path, while
another work 'B' set the path before worker A has finish, I
2014 May 19
0
Missing production secret_key_base in rails
Hi,
I have asked this question on github<https://github.com/rails/rails/issues/15175>
.
Senny answered me to set
export SECRET_KEY_BASE =d1f4810e662acf46a33960e3aa5bd0
************************
in your peoduction server. but I do not know how to set that. I am
deploying in openshift. I also have access to SSH via putty. I have tried
this command in SSH but it gives an error "Invalid
2014 Aug 27
0
Could not install Rmagick Gem in rails 4 (Ubuntu 13.04)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/anil/.rvm/rubies/ruby-2.0.0-p481/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.2. Can't find Magick-config in
2014 May 08
0
Rails log for rspec tests inside of an engine
Would anybody know how to do
this: http://stackoverflow.com/questions/20001361/rails-log-for-rspec-tests-inside-of-an-engine
?? thanks for the help
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
2014 Apr 06
0
collection_check_boxes with has_many through: association Rails 4
I am trying to list all the categories a user can be interested in with
check boxes so that a user can submit these interests through my join table.
collection_radio_buttons works with a simple has_many, belongs_to
association:
<%= collection_radio_buttons(:listing, :category_id, Category.all, :id,
:name do |b| %>
<%= b.label { b.radio_button} %>
<%= b.text %>
2014 Oct 23
0
Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'
Dear all,
since today the puppet agent does not work anymore if it is executed by
service.
I prints out:
Could not retrieve local facts: Could not find fact 'define_fact'
If I run puppet agent -t I do not get the message.
I have updated facter from 1.7.1 to 2.1 and hiera from 1.2.1 to 1.3.4
I have
Linux RedHat 5 and 6
puppet 3.3.1
facter 2.1.0
hiera 1.3.4
ruby 1.8.7
Does any have an
2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
Hi,
I'm looking for a way to solve an error I get each times I run my
functional tests. I have a Rails Engine gem (isolated), I have a JSON
action with a route declared. But each times I use the method get in a test
I get an ActionController::UrlGenerationError exception.
Here an example of code with the problem:
# config/routes.rbMyEngine::Engine.routes.draw do
resources :cats, only:
2014 Mar 31
0
Unable to delete post in sample blog application
Hi All,
I am new to RoR and I am writing a small blog application. I have added a
Destroy / Delete link to the post index, but when I click this delete link
the show action is fired. The log seems to confirm this:
Started GET "/posts/2" for xxx.xxx.xxx.xxx at 2014-03-31 15:51:03 +0000
Processing by PostsController#show as HTML
Parameters: {"id"=>"2"}
Post
2014 Apr 17
0
RestClient::ResourceNotFound in UsersController#index
Hi,
I am trying to implement Rest Api for a sample application for learning
purpose. But when I try to make a "GET" request through the RestClient it
is showing error as
RestClient::ResourceNotFound in UsersController#index
def index
uri = "#{API_BASE_URL}/users.json" # specifying json format in the URl
rest_resource = RestClient::Resource.new(uri, USERNAME,
2014 Apr 05
0
Datepicker FlatUI rails
Hi guys,
How does one use a datepicker flatUI calendar in rails? I have been poking
around for documentation, but can't seem to find any. Is there any out
there?
Thx!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
2014 Mar 07
0
Abril Pro Ruby 2014 - The Tropical Ruby Conference
Hello everybody,
On April 24th to 27th the biggest Ruby Conference on the Northeast of
Brazil will be happening, Abril Pro Ruby <http://abrilproruby.com/>. We
would like to invite you to be part of the event and share you experiences
with great rubists from all over the world in Porto de Galinhas, very close
to Recife.
Speakers from everywhere are already confirmed to the event. Take a
2014 Mar 19
0
ActionView::Template::Error: end of file reached Rails 4.0.4
I have an application I'm migrating from Rails 3.2 to 4.0. On my CI
environment, I'm getting "ActionView::Template::Error: end of file reached"
randomly in different controller specs pointing to a view in which I have
"javascript_include_tag 'application'". Has anyone seen this before?
Relevant gems:
rails (4.0.4)
sprockets (2.11.0)
sprockets-rails (2.0.1)
2014 Jun 03
0
How to use Rambling Slider Rails
Dear all developers,
I want to use slideshow in my website. and i did a research rambling slider
could use with rails.
but i don't know how to use it. any one could help me.
thanks you,
veasna
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
2014 May 29
0
PATH problems with running Cukes from Jenkins
I'm having PATH problems with running my Cukes from Jenkins, more details
here:
http://stackoverflow.com/questions/23921127/cucumber-scripts-not-working-on-jenkins-due-to-path-issues
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
2014 Mar 27
0
Rack middleware for shared connection pools?
I have a Rails app that makes connections to other DBs. There may be
multiple users connecting to multiple DBs.
The app makes a database connection as part of an action. However, I
noticed a problem: there's too many DB connections remaining open, which is
causing the DB to not have enough connections remaining for new connections.
So the answer is using a shared connection pool.
2014 Jun 06
0
puppetlabs-java: installing oracle-jdk on ubuntu trusty 14.04
Hi,
puppet 3.6.1 on a vanilla trusty ubuntu server, trying to install
oracle-jdk:
class { 'java':
distribution => 'oracle-jdk',
version => 'latest',
}
exits with the following error:
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install oracle-j2sdk1.7' returned 100:
Reading package
2014 May 06
0
js .closest
I have a script:
$ ->
$(document).on 'change', ('.ops_select'), ->
val = $(".ops_select option:selected").val()
$.ajax '/projects/update_oncalls/',
type: 'GET'
dataType: 'script'
data: {ops_group_id: val }
which triggers a "update_concalls.js.coffee" file to replace a the value in
a select-tag.
2014 Apr 18
0
Can't install Ruby on Rails
I've been trying to install ruby on rails for the past 4 days. No tutorial
has helped. I even decided to switch from Windows to Ubuntu (both 12 and
14) to see if that would help.
Still can't get it installed.
I am going to try to switch to Mac, but I have a bad feeling about it too.
It is pretty demoralizing when you try to do this for 4 days straight. I
have had very little sleep
2014 May 31
0
Disamiguate Profiles::Logstash and Logstash
I am using the puppet logstash module from Forge installed at
/etc/puppet/modules/logstash
I am trying to setup my profile class as profiles::logstash. My manifest is
at /etc/puppet/modules/profiles/manifests/logstash.pp
In my /etc/puppet/modules/profiles/manifests/logstash directory I have:
install.pp
config.pp
service.pp
In my install.pp:
class profiles::logstash::install() {
$ensure =
2014 Apr 22
0
[Job] Looking for Junior Level Rails Position in Phoenix or remote.
I have been learning Rails for about 8 months and have completed a dev
bootcamp. I am looking for my first professional gig and I have done
multiple hobby gigs. I am looking for between $45k-55k. I have experience
with:
- Generators for models, controllers and migrations
- Manage database through migration
- Basic validations including bcrypt
- GET and POST rests using MVC
-