Data dodania Pytanie
2017-01-21 13:01 Unable to get coffescript running, making a <div> class into a link »
So i am actually following a ruby on rail introductory video tutorial... This part of the course was about to teach me some coffeescript So the plan ...
(2) odpowiedzi
2017-01-21 01:01 SimpleCov: load .resultset.json and output html »
I would like to load a .resultset.json file and output the index.html that simplecov does when you run the test. I have not had success doing merging ...
(0) odpowiedzi
2017-01-20 12:01 error in start a server in ruby on rails »
when i want to start rails local server an error come : DL is deprecated, please use Fiddle Expected string default value for '--rc'; got false (bool...
(0) odpowiedzi
2017-01-20 02:01 Someone tried to hack a Rails website using invalid character in the url »
Yesterday someone has tried hacking the website as there were around 200 requests which had byte sequence in it and were fired in less than 3 minutes ...
(0) odpowiedzi
2017-01-20 01:01 Rails Prawn UnrecognizedTableContent »
after update Prawn 1.0.0.rc2 to 1.2.1 and install prawn-table and start to Prawn::Errors::UnrecognizedTableContent (Prawn::Errors::UnrecognizedTab...
(0) odpowiedzi
2017-01-19 23:01 Dynamic methods in ruby/rails »
I'm developing a Rails application with ActiveRecord. Among other things, I have the following models: class Report has_many :subscriptions has_m...
(1) odpowiedzi
2017-01-19 23:01 Rails query user first name on join model »
this situation that find the user on a join model is seems tricky than usual class ConversationParticipant < ActiveRecord::Base belongs_to ...
(1) odpowiedzi
2017-01-19 04:01 Unpermitted parameters from nested attributes »
I've looked through every post I can imagine regarding this, but can't come across a solution. I have a Task with a nested resource of Task Products ...
(2) odpowiedzi
2017-01-18 22:01 HTML execute Ruby Script »
I have a basic rails website, generated using rails new app_name. I want to execute a ruby scraper script that returns a list of my github repos from ...
(1) odpowiedzi
2017-01-18 18:01 config.expire_auth_token_on_timeout not working in devise 3.2.4 with rails 3.2.13 »
Using devise 3.2.4 with rails 3.2.13. I am trying to expire auth token on session timeout therefore in my devise.rb file , I have made following chan...
(0) odpowiedzi
2017-01-18 13:01 RSpec Stack level too deep (SystemStackError) »
I have three models offer_ticket, event and offer and have three their respective factories below are the models and factories are given i got error s...
(1) odpowiedzi
2017-01-17 10:01 how to get god status in rails »
I have setup god and provided script file to load and it working as expected. i wanted to take status of that god process from my rails application. ...
(1) odpowiedzi
2017-01-17 02:01 paypal adaptive Authentication failed. API credentials are incorrect »
i'm testing the adaptive payment on sandbox mode. but i'm getting error=Authentication+failed.+API+credentials+are+incorrect so, i would like to kno...
(0) odpowiedzi
2017-01-17 01:01 Error installing rmagick 2.13.x - Rails »
I'm trying to install rmagick 2.13.x and I'm having a few problems. I've installed imagemagick and libmagickwand-dev. I have two folders with imagema...
(0) odpowiedzi
2017-01-15 18:01 Error Transaction.new into Rails app trying to import CSV data »
I try to import a CSV file into my database in a Rails app. I follow this gist. Here is my code: # db/seeds.rb require 'csv' csv_text = File.read(R...
(1) odpowiedzi
2017-01-14 18:01 Rails - unit tests for require file »
Is there any way for unit testing whether correct file is getting required/loaded. say for eg. I am in file a2, and I need to require the file a1, b...
(0) odpowiedzi
2017-01-14 12:01 error precompiling assets when moving to production »
I am trying to move my project to production, trying to RAILS_ENV=production bundle exec rake assets:precompile gives me an error, without specifyi...
(1) odpowiedzi
2017-01-13 02:01 Add concerns module to Model »
I have a model class called Person. The person class has a attribute called car. Now I would like to define a module in the concerns model called Per...
(1) odpowiedzi
2017-01-13 01:01 Rails where use lru_redux gem »
Lru_redux seems interesting to boost the speed apps but the documentation is vague, so, someone have a idea how or where to use this lru_redux gem? ...
(0) odpowiedzi
2017-01-12 18:01 Mass update attributes with mock data »
I'm looking to dump my production db to staging, the problem is that there is a lot of data I wish to maintain private, like emails, faxes, names for ...
(0) odpowiedzi
2017-01-12 11:01 How to get each value from hash of array? »
I have a hash of array with key, values in ruby which I want to pass each value with key. I want to extract content using my hash. My code is : ...
(4) odpowiedzi
2017-01-11 22:01 rails has_many through with 5 tables »
I would like to know if is a good practice create a has_many through with more than 2 tables. for exemple: I have class Color < ActiveRecord::Bas...
(0) odpowiedzi
2017-01-11 16:01 Ruby on Rails: Using functions to retrieve data from model »
In my RoR application I am trying to display information from associated tables on a view. I have tables with data such as this: Email id subje...
(1) odpowiedzi
2017-01-11 05:01 Wicked pdf not rendering header/footer »
I am using wicked_pdf for generating pdf from html on my rails project. It is rendering template but I could not manage to print header/footer section...
(1) odpowiedzi
2017-01-10 21:01 Carrier Wave mini_magick_processing error »
I am trying to upload an image in my signup form using carrierwave gem but getting this error: Avatar translation missing: en.errors.messages.mini...
(0) odpowiedzi
2017-01-10 14:01 Can't create model on ruby on rails »
I'm starting to learn ruby on rails. the problem that i have is that i don't know why i get there while i want to create model this is the command th...
(5) odpowiedzi
2017-01-10 10:01 Redirect with cookies »
Is it possible to redirect to other domain with cookies? I tried followong. def test_redirect response.headers['Cache-Control'] = 'no-cache, no-sto...
(1) odpowiedzi
2017-01-09 21:01 Ruby on Rails: Add form for another model on a form »
Within my Ruby on Rails application I am trying to implement a relationship between Group and Contact, whereby one group can contain many contacts and...
(3) odpowiedzi
2017-01-09 11:01 rails mysql regex input not getting sanitized properly »
I am doing the following on a rails 3 app def test(str) User.where("name REGEXP ?",str).last end Using the format above, rails generally handle...
(1) odpowiedzi
2017-01-09 02:01 What exactly was initialize_on_precompile used for? »
I'm having trouble understanding what initialize_on_precompile was used for. What exactly did it mean for it to be false (especially as it relates to ...
(1) odpowiedzi
2017-01-08 23:01 Why in Rails table fields are defined in migrations but not in models? »
I am studying Ruby on Rails and confused with structure of files and code.. Why in Rails table fields are defined in migrations but not in models? I k...
(1) odpowiedzi
2017-01-07 21:01 Rails Alternative to use polymorphic associations »
I've see that the polymorphic association break the rules of relational db design and in the end cause more harm to the app. so, the left alternative ...
(1) odpowiedzi
2017-01-07 14:01 Rails Form Check Box or select Array value for multiple arrays »
I'm maintaining a Rails 3.2.22.5 legacy app and creating a form to send messages internally to users (in this case they are called medics). Here is w...
(1) odpowiedzi
2017-01-07 04:01 How to achive abstraction and encapusulation in ruby on Rails? »
How to achieve abstraction and encapsulation in ruby on Rails? Without using any gem? ...
(0) odpowiedzi
2017-01-06 19:01 Update hash value in class »
Here I have a little demo-code: class UpdateHash def initialize(value) @value = value save end def save @value = 10 end end ha...
(3) odpowiedzi