Data dodania Pytanie
2017-02-01 18:02 change routes URL from a random :id to :username in rails »
I want to change my routes.rb file in a way so that it changes my current urls localhost:3000/amitian/1 to localhost:3000/username I will provide...
(2) odpowiedzi
2017-02-01 17:02 How do I resolve this error that keeps me from starting rails server? »
Hey guys I have searched documentation to this error that I have never seen before in working with Ruby on Rails. I just got a new MacBook and I insta...
(1) odpowiedzi
2017-01-31 22:01 ruby on rails prepared statement for oracle view/function »
I have the following code which executes an oracle view as follows: def run_query connection.exec_query( "SELECT * FROM TABLE(FN_REQRESP(#...
(0) odpowiedzi
2017-01-31 20:01 How do I query the database after a Postgres exception? »
I'm having some trouble handling concurrency issues when inserting into a Postgres database. The model has a uniqueness constraint on an index column,...
(1) odpowiedzi
2017-01-30 18:01 acts_as_votable gem likes all the posts on page in rails »
Lemme explain what I mean, the point is that I am using acts_as_votable gem in my rails app and it works fyn, problem is that I am using ajax and I am...
(1) odpowiedzi
2017-01-30 15:01 Rails best way (or best practices) »
I have a model which I don't know how to focus the following issue: I have been reading the following posts before_create in rails model before_c...
(1) odpowiedzi
2017-01-30 13:01 Error with Ruby gems (Ruby on Rails) »
I'm still getting an error with my gemfile, I can Download all the gems, but at the moment of 'rails server' I'm getting this error: /home/administra...
(1) odpowiedzi
2017-01-29 20:01 How to access Form.select values in rails »
I have this form where I want users to select how they want to post. Either with their name or anonymous. So this is my form for that: - @anonymous....
(1) odpowiedzi
2017-01-29 16:01 Is there any difference between aggregate([{:$project => {:_id=>1}}]) and projection({:_id=>1}) in mongodb? »
Both of the two expressions below in mongodb return the same value: db.collection.find().aggregate([{:$project => {:_id=>1}}]) db.collection.f...
(0) odpowiedzi
2017-01-29 12:01 page layout on prawn unable to set inside class »
i have searched in prawn about page layout in prawn and it showed this pdf = Prawn::Document.new(:page_size => "A4", :page_layout => :landscape...
(1) odpowiedzi
2017-01-28 18:01 Why i am getting error "plan not exist " in my rubyonrails website?(link is given below) »
[every time i click on sign up in both basic and pro membership page i get this error][1] Below is my whole project.please help as i cannot send my ap...
(0) odpowiedzi
2017-01-28 11:01 how to create guest user to angular rails app without populate database? »
I have angular - rails web application. My web app is already in production mode.i'm using devise gem. I want to create a demo for Guest Users to logi...
(0) odpowiedzi
2017-01-27 20:01 Get only the query string in current view »
I am setting the canonical URL for my Rails site which has many many subdomains that render the exact same content as the main domain. I am adding th...
(1) odpowiedzi
2017-01-27 09:01 Ruby rmagick: How to make text more bold? »
def change_image_labels(feed_data) for data in feed_data img = Image::read(@tmpdir_file_path+"/#{data[0]}.png").first.resize(600,600) redback = Im...
(1) odpowiedzi
2017-01-27 06:01 Update database column in rails »
I have a problem, I want to update my database's "active" column. my schema = tablename(name:string , id:int , active:0 ,created_at) I want to u...
(3) odpowiedzi
2017-01-26 22:01 method for determining data for google tracking manager »
I have a method for defining data for google tracking manager. First logic organized in views, but I don't think this is right. Should I put the metho...
(1) odpowiedzi
2017-01-25 23:01 link_to popup modal div not working in rails »
I am making a rails app where I want to show a modal popup div whenever I click on link_to 'Add new Progress' I tried to do it but didn't work out we...
(1) odpowiedzi
2017-01-25 17:01 Ruby on Rails: How to validate if on specific page? »
In my Ruby on Rails application I am trying to add in validations that will ensure the user has entered a value in a text box. In my system I have a t...
(3) odpowiedzi
2017-01-25 11:01 Rails 4.1 undefined method `usual_start_time' for nil:NilClass »
I have a form which creates the default time of 6.45pm. When a new form is created _form.html.erb = f.input :started_at, as: :string, class: 'form...
(2) odpowiedzi
2017-01-24 21:01 Ruby on Rails: Display confirmation message if not includes »
In Ruby on Rails, is it possible to display a confirmation message if the user has not entered a string in a text field? I have a form whereby a user ...
(1) odpowiedzi
2017-01-24 21:01 How to Kill threads that are present in Controller in its model (Ruby 2.1.2 on Rails 3.2.13) »
I have a controller RamsController in that I have this method def check_status @ram = Ram.find(params[:id]) if @ram.workflow == "start" t...
(0) odpowiedzi
2017-01-24 07:01 rails Validate has_many through »
I'm trying to validate has_many through association using the id or the validade associated method but, the log spits out! someone have any idea how ...
(1) odpowiedzi
2017-01-23 22:01 Ruby on Rails: In controller, retrieve data from text_field based on HTML ID »
In my RoR application, I am trying to create a form whereby users can update the fields of multiple records at once. To do this I have been following ...
(1) odpowiedzi
2017-01-23 05:01 How can I not authenticate everytime in StackExchange API calls using JS client? »
I am using this code from the StackExchange App Documentation to get the user information from StackOverflow. // For simplicity, we're using jQuery f...
(0) odpowiedzi
2017-01-23 00:01 Rack::Deflater works if only added to config.ru »
Why am I getting Error: incorrect header check when I add class Application < Rails::Application config.middleware.use Rack::Deflater ... .....
(0) odpowiedzi
2017-01-22 08:01 Rails predictor array_to_json »
I'm, trying to create a prediction of product using predictor gem and ip_address but rails spits out no such function: array_agg someone have ...
(1) odpowiedzi
2017-01-22 02:01 Can't migrate to heroku (Ruby on Rails tutorial [Michael Hartl] chaper 10) »
I am working through chapter 10 of the Hartl book. In the conclusion of this chapter, we reset the heroku database and then migrate. However when I ru...
(2) odpowiedzi
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