Tagged Questions
Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its "convention over configuration" approach to application development.
0
votes
0answers
3 views
failed to allocate memory on the console and internal server error on the browser
I have this error while loading the data from files in to database. Please help me out in getting this right.
here is the method :
clusters.each do |cluster|
cluster_path = cluster.path
...
0
votes
0answers
18 views
Can't save more that one object using nested form?
I am using nested_form gem and have following form:
= simple_nested_form_for @profile do |f|
= f.fields_for :person do |p|
= p.fields_for :web_profiles do |e|
= e.input :name
= ...
0
votes
0answers
4 views
redirect omniauth-facebook to a specific page after authentication
Newbie here , i have omniauth-facebook setup in an application , every thing working fine , my only issue i want to redirect to another page after the authentication ,but i can't quite figure it out . ...
0
votes
0answers
13 views
deploy via capistrano fail
2013-06-17 15:23:22 executing `deploy'
* 2013-06-17 15:23:22 executing `deploy:update'
** transaction: start
* 2013-06-17 15:23:22 executing `deploy:update_code'
updating the cached checkout on all ...
-1
votes
0answers
12 views
if check-box is checked return timestamp
I have a rails app where I need a check-box. If the check-box is checked, I would like it to display the current time stamp.
If it's not clicked, nothing should be displayed.
Also, whenever I ...
0
votes
2answers
10 views
why rspec test requires save and reload all time
This my example test block
it 'should redirect to account portfolio items page if user is creative and its first visit is false and sign in count is 1' do
@creative.first_visit = false
...
0
votes
1answer
11 views
How to execute a Rails “Rake Task”
what's up?
My friend created a rake task to update our data in the database (because we have db changes). Following is the task:
namespace :db do
task :update_database => :environment do
...
0
votes
0answers
17 views
Production redis server has 100% cpu usage
My production redis server has gone mad and has been hogging up 100% of CPU usage.
I have done everything that I can from upgrading redis server to restarting the machine.
I can't figure out what's ...
0
votes
1answer
13 views
Serializing ActiveRecord::Relation objects for storage
I am trying to build a reporting feature for my app and each report is essentially an active record relation / query with a name. I need to serialise these relations so that I can persist them and ...
0
votes
0answers
5 views
Ignore URI(request.referer).path for previous URL when visiting directly to a page
I'm trying to save the previous URL in a session, I currently have this code:
after_filter "save_my_previous_url", only: [:renderForm, :renderQuote]
def save_my_previous_url
if ...
0
votes
0answers
14 views
ArgumentError: redundant UTF-8 sequence
Hi i am unable to figure what is the actual issue. i am using rails 2.3.18 and ruby 1.8.7
The stack trace of the error is as follows
…tivesupport-2.3.18/lib/active_support/json/encoding.rb: 68:in ...
-2
votes
0answers
27 views
Search using regexp
My question is not really code related (but I will provide code samples and SQL requests) - it is more about existing approaches of making search a little bit smarter (not to be very sensitive to ...
0
votes
0answers
17 views
RoR gem to financial calculate
I am looking for a gem in Ruby on Rails to calculate TAE, PMT, IRR and FV values (financial values).
Does anyone know of a gem to calculate this values? I tried 'gem finance', but I'm looking for an ...
0
votes
1answer
18 views
Rails 4 config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif application-print.css) error
In Rails 4.0.0-rc2, the line below is causing an error "+" (something about truth) in either production.rb or application.rb. This link refers to it needing to be in application.rb. I am unable to ...
2
votes
1answer
32 views
How I can make the complex filter for examples
I try to do complex filter for examples.
I have this code:
require 'rspec'
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run :foo => ...