Data dodania Pytanie
2017-04-06 02:04 Rails how to controller redirect if boolean is true? »
i'm trying to create a object and turn the boolean to true and redirect after that in any case the log show error. someone know how? class BrandsCo...
(1) odpowiedzi
2017-04-05 20:04 How to change method name for has_through rails association? »
I am trying to create two has many relations to the same destination tables but I am unable to override the default method name rails creates when def...
(2) odpowiedzi
2017-04-05 01:04 Rails how to hide form after save? »
this is the case: models/product.rb belongs_to :brand models/brand.rb has_many :products controllers/products_controller.rb class ProductsCon...
(1) odpowiedzi
2017-04-04 20:04 Rails strange behavior with build association »
I have a product model that belongs to Brand Model product belongs_to :brand model Brand has_one :product on product create i place a select bran...
(1) odpowiedzi
2017-04-04 20:04 Creating form for an object which has an association »
I have two models: project and todo. Project has many todos. So I wanna create a form, where I select project category from the combobox and then I a...
(1) odpowiedzi
2017-04-04 09:04 LMS-LTI Test Cases in Rails »
I am writing Test Cases using Rspe for LTI Consumer and setting its oauth nonce, oauth signature and then calling my controller to bypass this data as...
(0) odpowiedzi
2017-04-03 13:04 ImageMagick : ERROR: Failed to build gem native extension »
i have a error installing the gem called rmagick. I have seen other Stack Over flow websites regarding the same issue. but din't work. Error: Tempo...
(2) odpowiedzi
2017-04-03 11:04 Ruby on rails rake db error »
I have cloned a project and ran it locally on my machine. I'm getting an error when i run rake db:migrate. Can anyone please explain this to me? I h...
(2) odpowiedzi
2017-04-03 05:04 How to use devise in an other model? »
I'm trying to implement devise login into a nav, but I'm facing to an error that I can't solve. When i'm submit my form to run the connection, I have ...
(1) odpowiedzi
2017-04-02 07:04 Image not displaying when using paper clip »
This problem i have been trying to solve with the help of stack over websites. But unfortunately i can't do so. So i decided to ask a helping hand ins...
(1) odpowiedzi
2017-03-31 16:03 best way to learn ror »
I'm new to ruby on rails, is there a way to grasp the subject and have hands on to get a good grip of the language? ...
(0) odpowiedzi
2017-03-31 01:03 How make caching work with pagination and search form? »
I working with ruby on rails and my products views is cached and I can find products with search form. I want to use pagination as well, but when adde...
(1) odpowiedzi
2017-03-31 01:03 Devise reset email within time interval »
In devise, how to restrict a definite time interval to reset the password? I am using rails framework on the backend. I found the following command ...
(0) odpowiedzi
2017-03-30 21:03 Scope to get users older then 18 years old by birthday field (Rails 3.2) »
I need to write scope that will help me get users where age will be > 18 years, but I don't have age field in database. My solutions doesn't works =( ...
(1) odpowiedzi
2017-03-30 09:03 Ruby: undefined method `delete', deleting parent and child data at the same time »
I'm a newbie programmer, basically I'm trying to delete a record from a database table, however this record would be used on a child table with a comp...
(1) odpowiedzi
2017-03-30 08:03 503 (Service Unavailable: Back-end server is at capacity) »
I have Amazone-E2 Server. My Rails application working on nginx and Unicorn. Suddenly I'm getting 503 (Service Unavailable: Back-end server is at cap...
(0) odpowiedzi
2017-03-29 15:03 Rails: Adding scope in a model using column values of same model in where clause »
I am new to rails. I am trying to create a scope using where clause. In that where clause i want to use column values of same model. But i don't know ...
(2) odpowiedzi
2017-03-29 01:03 ActiveRecord::Enum - PG::InvalidTextRepresentation: ERROR: invalid input syntax for integer: »
I am having a strange error and was hoping someone could point me in the right direction. I have a model called Organizations, and a attribute called ...
(2) odpowiedzi
2017-03-29 00:03 Double Join Query Rails »
I have three models, JobPosting, Job, and Organization. The relations are below: An Organization has many Jobs. A Job belongs to an Organization and...
(1) odpowiedzi
2017-03-28 16:03 Refactor Similar Methods Redirects Different Rails »
I wanted to get some advice on how I can refactor some code to make it more DRY, as Rails is very much about DRY. In my controller I have some methods...
(2) odpowiedzi
2017-03-27 09:03 Rails Javascript - refresh partial in view on click »
In my project I am calling a partial in my view game_player_main.html.erb: <%= button_to "Wurfbild", home_player_statistic_detail_path(:game_id =...
(0) odpowiedzi
2017-03-27 02:03 Rails - Checking Attributes Through Another Object »
I have a three models, Organizations, Jobs, and Users. See the relations below: User.rb has_many :organizations, :through => :jobs has_many :jobs...
(1) odpowiedzi
2017-03-25 20:03 Rails files upload on production »
I trying to upload an image on my local server with carrierwave there are no errors. But when i've tryed to upload same image on my production server ...
(1) odpowiedzi
2017-03-25 15:03 Override redirect on error in Devise registrations controller (Rails) »
To add some custom logic to my sign up flow, I have overriden the default Devise registrations controller like this: class RegistrationsController &l...
(0) odpowiedzi
2017-03-25 15:03 rails deploy migrating run with root »
When i do deploy, migrating run as root. i have error: Mysql2::Error: Access denied for user 'root'@'localhost' (using password: YES) But in my /shar...
(1) odpowiedzi
2017-03-24 19:03 Providing an argument that looks like an option (rails runner / OptionParser / optparse) »
I have a script magic which uses rails runner to invoke another script magic-foo.rb, which does it's own option parsing. Something like this: exec(...
(0) odpowiedzi
2017-03-24 11:03 Rails: redirect_to(...) and return vs return redirect_to »
When redirecting in rails 3, Is return redirect_to(...) a valid Rails statement? I've always just used redirect_to(...) and return but I saw a line ...
(1) odpowiedzi
2017-03-23 13:03 I want to find exclude a particular category from the Foursquare API JSON how can I do it in RUBY? »
i want to find exclude a particular category from the foursquare api json how can i do it in ruby? in case i want to exclude Amphitheater and its sub ...
(0) odpowiedzi
2017-03-22 23:03 Rails how iterate has_one though? »
This is the scenario: so, the product did not have any relation with feedback, but the order has and i would like to show the feedbacks as belongs to...
(1) odpowiedzi
2017-03-22 11:03 Ruby on rails server not starting: bundler-1.14.6 `require': cannot load such file »
Upgrading and old Ruby on rails app from ruby 1.9.3-p545 to ruby 2.3.1. on development server. Rails 3.2.8 will be upgraded to 4.2.8 (not done yet). ...
(1) odpowiedzi
2017-03-22 03:03 Ruby Gems not found despite bundle install »
I have a Rails app. My collaborator updated the app's Ruby version and added Gems. I had to update my local version of Ruby to 2.3.1. Now it seems th...
(2) odpowiedzi
2017-03-20 17:03 Rails_admin model feature that is a function of other features »
I am currently using the rails_admin gem for a project,to create back office for a database and I want to update one of my models. The issue is the ...
(0) odpowiedzi
2017-03-20 10:03 bundle exec rspec spec/requests/static_pages_spec.rb and error »
I am using Michael Hartl's ruby on rail tutorial. When I try to execute the command:bundle exec rspec spec/requests/static_pages_spec.rb I get the f...
(1) odpowiedzi
2017-03-20 07:03 How to execute query over Amazon Athena with ruby? »
how to connect Amazon Athena with Ruby and execute query over Amazon Athena and get result. we not able to find any gem or example with help us to co...
(0) odpowiedzi
2017-03-19 19:03 Adding Categories In Rails 3 »
I am building an uploader for videos and giving the videos a category through categorizations. Every time I try to upload a video I receive an error s...
(1) odpowiedzi