Displaying 20 results from an estimated 6000 matches similar to: "help stylesheet_link_tag"
2012 Sep 18
2
undefined method `to_sym' for nil:NilClass
Hi all,
I am trying to upgrade my rails 2 app to 3 and am getting this error
when trying to login:
NoMethodError in AuthenticateController#authenticate
undefined method `to_sym'' for nil:NilClass
The stack trace is:
activerecord (3.2.2) lib/active_record/validations/uniqueness.rb:26:in
`validate_each''
activemodel (3.2.2) lib/active_model/validator.rb:153:in
2013 Oct 29
3
rake db:migrate debacle
Hi there - I''m a ruby newbie and am stuck on the Getting Started with Rails
app. See output below. Problem arose when I ran the rake db:migrate
command. I also tried the ''rake db:migrate RAILS_ENV=development'' command
which may be obvious. Any ideas on how to fix this?
Many thanks!!
$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0]
2012 Jul 23
4
uninitialized constant ActionController::Flash::FlashHash [NameError])
My application, a very simple general ledger, that worked very well until
June 26 does not work any longer. It is used under Ubuntu 12.04 and I
believe there was a Ruby update after that.
What happens?
When I try to start the appIication I get the following output in my web
browser:
ActionDispatch::Session::SessionRestoreError
Session contains objects whose class definition isn''t
2012 Apr 19
1
active admin undefined method `' for nil:NilClass
im working with active admin i have collection_select or dropdown box
that populates the packages and crews im just wondering i why this
undefined method `[]'' for nil:NilClass`
i dont know what happened but it run few days ago and tested it once but
now it raises this error are there possible way to solve this?
def create
@package = Package.find(params[:package_crew][:package_id])
2014 Feb 18
0
Compiled assets are not found in production mode run locally
I have a strange behaviour with compiled assets when running a simple draft
app locally:
RAILS_ENV=production rake assets:precompile
The aove command generated some css and js with finger printed values:
i.e. application-43dcf2bdff355d2c3053e2aade23881a.css
application-c67be452a576850d0c11559f908180e3.js
etc.
Run in production:
rails s -e production
There are no CSS fiound !
When
2012 Jun 18
4
Problem with exists? method
Hi,
I have a DB with table TABLENAME, column COLUMN and an active resource
client trying to connect to the DB. When i do
Tablename.find(:all) => i get all the entries from the table
But Tablename.exists?(:column => value) always returns false
I verified that the above command works from rails console. Dont
understand why it always returns false even when there are valid
records.
And in
2014 Apr 23
0
Something went wrong
http://secret-brushlands-1375.herokuapp.com/users/sign_up
Not sure why all of a sudden I am getting this error message when I try
to save a new user -
Here is the log file:
C:\rails_projects\store4>heroku logs
2014-04-23T21:35:54.918695+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call'
2014-04-23T21:35:54.918698+00:00
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
Hi Guys,
Facing a weird error .
Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
It seems to be happening with mail sending mail . I am using AUTHSMTP to
send mails . Unable to send mail and the app breaks .
Any help will be appreciated . Same code worked with ruby 1.8 and rails
2.3.x .
*Configuration*
Rails 3.2
Ruby 1.9
Engineyard , Linux Instance
*Backtrace :*
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
Hi Guys,
Facing a weird error .
Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
It seems to be happening with mail sending mail . I am using AUTHSMTP to
send mails . Unable to send mail and the app breaks .
Any help will be appreciated . Same code worked with ruby 1.8 and rails
2.3.x .
*Configuration*
Rails 3.2
Ruby 1.9
Engineyard , Linux Instance
*Backtrace :*
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
Hi all, I am trying to reproduce rails 3.2 behaviour with fields_for and
nested attributes.
class ControllerAction < ActiveRecord::Base
has_many :interactions, dependent: :destroy
has_many :roles, through: :interactions
scope :controllers, lambda {|name| where("controller_name_id = ?",
name)}
scope :actions, lambda {|name| where("action_name_id =
2010 Dec 10
0
Encoding issues when uploading files
Hello everybody,
I have some troubles with uploading files in my Rails project.
I use Rails 3, Ruby 1.9.2, rack 1.2.1, and both webrick / passenger on
apache
I was investigating and have isolated the strange behaviour on a
simple empty project:
view:
<% form_tag({:action => ''upload''}, :multipart => true) do %>
<%=text_field_tag :desc %>
2012 Jan 23
0
Problem loading modules through ActiveSupport on_load
Working with modules to group certain methods. Currently I have this
set up and it works:
**# app/models/a.rb**
class A
has_history
end
**# lib/history.rb**
module History
module Model
def self.included(base)
base.send :extend, ClassMethods
end
module ClassMethods
def has_history(options = {})
send :include,
2013 Feb 10
0
Nested attributes doesnt get updated
Hi
Am building a nested form and my code works fine with sqlite3 but throws
errors when using Oracle during update action.
Am getting the following error:
ActiveRecord::RecordNotFound in AWRequestsController#update
Couldn''t find WADetail with ID=5000000015 for AWRequest with ID=5000000022.0
Request
*Parameters*:
{"utf8"=>"✓",
2012 Jan 26
2
Problem while creating new resource on ActiveAdmin
HI All,
I have installed the Active Admin successfully, but facing the following
error while restarting the server after generating an resource.
*rails generate active_admin:resource item*
/home/logs/Desktop/training/RAILS/courier/app/admin/items.rb:1:in `<top
(required)>'': uninitialized constant Item (NameError)
from
2012 Oct 18
0
unexpected return (LocalJumpError) only when executing this code within autoloaded classes?
Posted on stackoverflow but no traction yet:
http://stackoverflow.com/questions/12942505/why-does-using-set-trace-func-work-in-some-places-but-cause-unexpected-return-l
The following is a generified part of the code in a gem I''m working on:
module SomeModule
class << self
attr_accessor :procedure
def log_events(*args)
args.flatten!
2011 May 21
4
request.format = :mobile causes error "undefined method `ref' for nil:NilClass"
I have a strange problem with setting request.format = :mobile
I can reproduce this problem on a completely fresh Rails 3.0.7 app
with no special gems. This seemed to work well in Rails 2 but for some
reason is hiccuping here, not sure what''s different in Rails 3 that
makes this hiccup. If you look at the stack track, it doesn''t even
pass through my app stack once -- weird --
2010 Jun 17
2
"LoadError: no such file to load -- openssl", following Rails Guides
[With apologies for cross-posting at http://railsforum.com/viewtopic.php?id=39587]
Hi all,
I''m following the edge ''getting started'' guide at
http://guides.rails.info/getting_started.html, running ROR 3. I''m
running Ruby 1.9.2 (as instructed by the guide), installed using RVM.
I get an error when following "4.3 Setting the Application Home
Page".
2013 Aug 29
4
linkedin gem
Hi,
I am following this post *
http://www.sitepoint.com/ruby-social-gems-linkedin/* for using linked gem
and API for getting profile and other stuff
But at the end I am getting this error:
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
2011 Sep 04
1
Linking failure in stylesheet_link_tag in production mode with asset pipeline enabled
Hey,
in my `application.html.erb`, I have this line:
<%= stylesheet_link_tag ''application'' %>
which should compile through the asset pipeline and link to the
application.css (which does a `require_tree .`). In development mode,
I''d expect a
<link ... href="/assets/application.css" />
This file is actually delivered by, for example, the
2012 Jan 23
2
Rails 3.2: invalid %-encoding (100%)
I started getting exception notifications recently from the server
just about the time I upgraded to Rails 3.2. I don''t know if that is a
coincidence or not. Evidently some robot is hitting my site with:
mydomain.com?iframe=true&width=100%&height=100%
and that is throwing an exception.
I have two questions:
1) First, just out of curiosity, who puts