Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged ruby

0 votes
320 views
1 answer
    I have read the documentation at http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html, but don't understand when the around_* callbacks are ... after_*. Any help much appreciated. Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
447 views
1 answer
    I got now this error When I want to run any gem commands such as gem install rubygems-update the error while executing gem ... (ArgumentError) unknown encoding name ... ????? Note : I'm using windows 7 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
367 views
1 answer
    Rails provides named routes. Routes helper can be called using path or url eg from docs: # and provide these named routes root_url # => 'http://www ... with explanations when to use what would be great. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
283 views
1 answer
    I get the following output from the sudo bundle install command: Fetching source index for `http://rubygems.org/` Could not reach rubygems repository `http:// ... app (which I wouldn't mind doing...) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
355 views
1 answer
    Hi I am using Devise for my user authentication suddenly my new user registration was not working. this was error I am getting. ActionController::InvalidAuthenticityToken Rails ... </div> </div> <% end %> See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
269 views
1 answer
    I have a rails project running that defines the standard production:, :development and :test DB-connections in config/database.yml In addition I have ... use that other database definition? Thanks, Frank See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
265 views
1 answer
    I am having a problem understanding how array.sort{ |x,y| block } works exactly, hence how to use it? An example from Ruby documentation: a = [ "d", "a", "e", "c", "b" ... } #=> ["e", "d", "c", "b", "a"] See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
355 views
1 answer
    [email protected]:~> gem install hpricot ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /opt/ruby-enterprise-1. ... -enterprise-1.8.7/lib/ruby/gems/1.8 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
494 views
1 answer
    I have a download link in my app from which users should be able to download files which are stored on s3. These files will be publicly accessible on urls ... . How do I allow users to download S3 files? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
311 views
1 answer
    Why can I access helper methods for one controller in the views for a different controller? Is there a way to disable this without hacking/patching Rails? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
357 views
1 answer
    My created_at timestamps are stored in UTC: >> Annotation.last.created_at => Sat, 29 Aug 2009 23:30:09 UTC +00:00 How do I ... savings)? Something like: Annotation.last.created_at.in_eastern_time See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
526 views
1 answer
    What I need is a migration to apply unique constraint to a combination of columns. i.e. for a people table, a combination of first_name, last_Name and Dob should be unique. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
291 views
1 answer
    I recently upgrade to the 10.10 Yosemite beta, but I'm having trouble getting Nokogiri installed. I'm using RVM and Ruby 1.9.3. I've also followed ... updated in order to work in the 10.10 environment. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
504 views
1 answer
    I used sudo bundle install and that might be the cause of the issue? Now I have: gem -v 2.6.14 ruby -v ruby 2.3.5p376 (2017-09-14 revision ... Ruby, Gem or Bundle :) So I would appreciate some insights! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
362 views
1 answer
    I'm running into issues trying to install Rails on OS X Lion using RVM. So far, I have done the following: Installed Mac OS X Lion ... and https://github.com/carlhuda/bundler/issues/1058 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
260 views
1 answer
    I want to switch between rails 2.3.10 as the "active" gem for my OS, so that I can invoke it at the command line. Is it possible to do this ... any precise control over gems at the OS level until now) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
355 views
1 answer
    I have rubygems 1.3.1 installed but I want to go back to 1.2.0. What's the command to downgrade rubygems? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
260 views
1 answer
    I'm running bundle install and I'm getting this error: Building nokogiri using system libraries. Gem::Ext::BuildError: ERROR: Failed to build gem ... when running bundle install it displays the error. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
518 views
1 answer
    When launching Guard, I'm getting this output: $ guard WARN: Unresolved specs during Gem::Specification.reset: lumberjack (>= 1.0.2) ffi (>= 0.5.0) ... :style => :compressed, :extension => '.min.css' See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
304 views
1 answer
    I have a loop like such: <% @posts.each do |post| %> <% render middle %> <% end %> Then in my middle partial, how do I access the current post? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
364 views
1 answer
    Is there a way to figure out what the current controller is from within the view? For an example of why I would want to know this: if several controllers ... m just wondering if there's a built-in way.) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
485 views
1 answer
    I have one page website only using HTML, CSS and JavaScript. I want to deploy the app to Heroku, but I cannot find a way to do it. I am now trying ... should I write here to point to the `index.html` end See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
361 views
1 answer
    I have the following code in my controller: format.json { render :json => { :flashcard => @flashcard, :lesson => @lesson, :success => true } ... received: 0 times Am I checking the response incorrectly? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
499 views
1 answer
    Given the following associations, I need to reference the Question that a Choice is attached through from the Choice model. I have been attempting to ... something simple. Any help would be appreciated. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
296 views
1 answer
    A Rails 3.2.0 app, working fine with Thin web server, both locally and on Heroku cedar stack. After: $ git branch work $ git checkout work $ rails ... and installed it. Nothing seems to work. Any ideas? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
332 views
1 answer
    I'm trying to put my app into production and image and css asset paths aren't working. Here's what I'm currently doing: Image assets live in /app/ ... for javascripts (notice the /assets/****.js path). See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
417 views
1 answer
    Is there an alternative to update_attributes that does not save the record? So I could do something like: @car = Car.new(:make => 'GMC') #other processing ... but I want to update them all on one line. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
311 views
1 answer
    I get the error shown below when attempting to install the rmagick gem. I am on Snowleopard 10.6 using RVM, Ruby 1.9.2-head and Rails 3.05. ... of packages, and updates/uninstalls are a cinch as well! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
...