On 13 February 2012 03:11, Everaldo Gomes everaldo.go...@gmail.com wrote:
because I didn't understand very well what are you doing.
I'm trying to do:
in route.rb I have: match /:layout = companies#index
Then when I call localhost/intraOp ther params[:layout] is intraOp,
when I call
I am using rvm on the ubuntu. I am following the rails tutorial from
Lynda.com
I was on the section of working in the rails console when i got the
following errors :-
I gave the command rails console
nitin@nitin-vaio:~/Nitin/Sites/app$ rails console
Loading development environment (Rails
On Mon, Feb 13, 2012 at 9:43 AM, Nitin A. li...@ruby-forum.com wrote:
I am using rvm on the ubuntu. I am following the rails tutorial from
Lynda.com
I was on the section of working in the rails console when i got the
following errors :-
I gave the command rails console
Linus Pettersson wrote in post #1045014:
Well, the code in the search view is executed when the view is rendered.
It
is not executed again when you inject the html using javascript.
So the if @group_trace code is only executed when the search view is
rendered and @group_trace is not created
We have delayed_job to handle background processing in our app. God
monitors the more-memory-consuming DJ workers now and then and cut them
off.
This setup has been working perfectly for months with daily deploys. Now
today, suddenly all the workers once they are started consumes 400+ MB
memory
On Mon, Feb 13, 2012 at 2:01 AM, Dev Guy devguy...@gmail.com wrote:
Hi I am learning to use jQuery but I can't seem to get the following
line to work from my html.erb file
script type=text/javascript
document.write(pHello from javascript!/p)
$(pHello from jQuery!/p)
/script
/p
I see the
On 13 February 2012 07:00, edward michaels micah...@gmail.com wrote:
Thanks, your idea did help.
if I do:
date = some_date
reduce = Time.where(:date = date)
I think you might run into trouble using a class Time as this is
already a ruby class.
Colin
--
You received this message because
On 13 February 2012 07:08, Anurag Sachan anuragsacha...@gmail.com wrote:
I am creating application which requires User management of various
levels for authorization of different level of users.
I want several models:
Admin_user
Project Manager
Company
Clients
Account : have many users of
On 12 February 2012 22:51, Mauro mrsan...@gmail.com wrote:
@current_layout is nil but authenticate_user! in companies_controller
is skipped despite :unless = lambda {@current_layout.nil?}
Perhaps skip_filter does not accept conditionals unless or if?
I think you are right, I don't see it in
Hi! Johann Aman
I can reproduce this issue.
Do you confirm the following commit ?
https://github.com/kennyj/rails/commit/b40b7f459e3ea66f824ac4791d8882775b4f6717
On 2月11日, 午後10:09, Johann Aman johann.a...@gmail.com wrote:
after updating pg gem to 0.13.0 got following error on production
I'm trying to use the recaptcha gem with devise 2.0.0 in rails 3.2.1.
Every time I try, I am able to display the captcha and input the 2
words it asks about. But in my controller (using code I found on
github for the recaptcha gem, and after I replaced render_with_context
with just plain render)
I did a little research inside the recaptcha gem code and discovered
that recaptcha-not-reachable means that the code timed out before it
got a response from the recaptcha website. Turns out the default
timeout value is set at only 3 seconds. I was able to resolve the
problem by changing the
I have been trying a lot for the last two days to implement a history
feature for my basic wiki rails app. I am using papertrails for that.
But according to my below code, whenever i click undo. it reverts back
to the first edit instead of the last edit. does that means its not
storing the last
I want to dynamically validate my password with validates_format_of .
validates_format_of :password,:with = need to get regular expression
dynamically based up on the object setting.
class Admin AR::Base
validates_format_of :password,:with = lambda {|admin|
admin.get_regular_exp}
def
Hi
I got error while I try this:
My controller is :
class SessionsController Devise::SessionsController
def new
super
end
def create
resource = warden.authenticate!(:scope = resource_name, :recall =
:failure)
if resource
subdomain_name =
I have developed a rails 3.1 application with mysql, accessable by
internet
However, I also need a version of the same application used standalone
on the users PC or MAC, i.e a form of an off-line mode, for those
users that demand full controle of their data
Can that be done ? My requiremets are
Hi All,
I want to get the environment name in which the application is executing
whether in production or in development etc using the bash script and want
to write that result into the .sh file. Not by using the ruby. Any ideas of
how to get this work?
--
Cheers,
Rafi
*In Every moment, thank
On Mon, Feb 13, 2012 at 1:39 PM, Rafi A rafigl...@gmail.com wrote:
Hi All,
I want to get the environment name in which the application is executing
whether in production or in development etc using the bash script and want
to write that result into the .sh file. Not by using the ruby. Any
On 13 February 2012 12:39, Rafi A rafigl...@gmail.com wrote:
Hi All,
I want to get the environment name in which the application is executing
whether in production or in development etc using the bash script and want
to write that result into the .sh file. Not by using the ruby. Any ideas of
You could use the rails runner and do something like
# add rails bin dir to path first!
RAILS_ENV=`rails runner puts Rails.env`
That said, if this is something you need access to regularly, add
initializer code to your app to write the end out to a well know file
name under the project that
Dear, Johann Aman
pg gem 0.13.1 was released. And, the bahavior was changed.
You can use it !
Please see also https://github.com/rails/rails/pull/5002 .
On 2月12日, 午前1:09, kennyj ken...@gmail.com wrote:
Hi! Johann Aman
I can reproduce this issue.
Do you confirm the following commit
script/server gives the following error.
= Booting WEBrick
= Rails 2.3.8 application starting on http://0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in
`const_missing': uninitialized constant User::Authentication
(NameError)
from
On 13 February 2012 13:58, Amrit Pal Pathak amritpalpath...@gmail.com wrote:
script/server gives the following error.
= Booting WEBrick
= Rails 2.3.8 application starting on http://0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in
Hi,
This is my recent project where is started to use STI for extend my Ad
model. I never before used STI and many people which i recently discuss
not recommended me to use this method.
1. What are the advantages and disadvanteges of STI and why i should use
delegation ??
2. And how in
On Mon, Feb 13, 2012 at 7:42 PM, Colin Law clan...@googlemail.com wrote:
On 13 February 2012 13:58, Amrit Pal Pathak amritpalpath...@gmail.com wrote:
script/server gives the following error.
= Booting WEBrick
= Rails 2.3.8 application starting on http://0.0.0.0:3000
On 13 February 2012 14:28, Amrit Pal Pathak amritpalpath...@gmail.com wrote:
On Mon, Feb 13, 2012 at 7:42 PM, Colin Law clan...@googlemail.com wrote:
On 13 February 2012 13:58, Amrit Pal Pathak amritpalpath...@gmail.com
wrote:
script/server gives the following error.
= Booting WEBrick
=
Hi I am working with the following code , but getting an error
ruby script/server
= Booting WEBrick
= Rails 2.3.5 application starting on http://0.0.0.0:3000
/usr/local/rvm/gems/ruby-1.8.7-p357/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning:
Gem::Dependency#version_requirements is
On 13 February 2012 15:04, aditya dsouza li...@ruby-forum.com wrote:
Hi I am working with the following code , but getting an error
ruby script/server
= Booting WEBrick
= Rails 2.3.5 application starting on http://0.0.0.0:3000
Hi Colin,
Thanks for replying. I checked the line number you said to and it
contains
something like this.
CACHE = Earth::Db::Base.cache_manager =
Earth::Db::MemcacheManager.new('localhost:11211')
I did install the memcache gem. Any ideas how to solve this as I am a
newbie in Rails.
Colin Law
On 13 Feb 2012, at 15:35, Colin Law wrote:
= Booting WEBrick
= Rails 2.3.8 application starting on http://0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/
active_support/dependencies.rb:105:in
`const_missing': uninitialized constant User::Authentication
(NameError)
On 13 February 2012 15:31, aditya dsouza li...@ruby-forum.com wrote:
Could you not top post please, it makes it difficult to follow the
thread. Insert your reply at appropriate points in the previous
message, thanks.
Hi Colin,
Thanks for replying. I checked the line number you said to and it
On 02/13/2012 05:39 AM, Hans wrote:
I have developed a rails 3.1 application with mysql, accessable by
internet
However, I also need a version of the same application used standalone
on the users PC or MAC, i.e a form of an off-line mode, for those
users that demand full controle of their data
On Feb 13, 2012, at 11:05 AM, Norm Scherer wrote:
On 02/13/2012 05:39 AM, Hans wrote:
I have developed a rails 3.1 application with mysql, accessable by
internet
However, I also need a version of the same application used standalone
on the users PC or MAC, i.e a form of an off-line mode,
Yes, but the code in the search view is not executed again when the AJAX
request is fired :)
So, you have to do the check in your loader.js.erb and not the search view.
Something like this should work:
% if @group_trace %
$('#loader_div').html(%=j render(@group_trace)%);
% end %
Cheers!
--
when rendering a piece of my form after an Ajax call, I get the error
ActionView::Template::Error (undefined local variable or method `f'
for ##Class:
controller
def change_price
new_price =
@tax_amount = new_price * I18n.t(:standard_tax_rate)
render
Hey all, well I have a delete function in my rails application that
works successfully. When I click the button it deletes the record from
the page as well as the database, my problem is that I don't want it to
instantaneously do this, I want it to give the user the option to cancel
before hand.
Hello,
My boss is really pushing us to switch to using Database.com for our
database. He seems to think it's the solution to every problem we've never
had. I've never worked with it before, so I don't know how it compares to
using plain, old, ActiveRecord. I'm hoping to get some candid
Hi,
from few weeks I started to develop rails_panel:
https://github.com/slawosz/rails_panel
- readme describes how to start.
It is early stage development now, but I would like to get some
feedback, or (it would be so great!) contributors. Please look at the
project and try to play with one of
On Mon, Feb 13, 2012 at 9:47 AM, Andrew misbehav...@gmail.com wrote:
Hello,
My boss is really pushing us to switch to using Database.com for our
database. He seems to think it's the solution to every problem we've never
had. I've never worked with it before, so I don't know how it compares to
If you're boss can't articulate the benefits to you for why he (or
she) wants you to do this -- and they're pushing you to undertake a
technical solution that could make you're development more complex
without understanding the impact of it - then they are an idiot.
Please feel free to tell them I
I resolved this problem, after re install my ubuntu, and start another
project, I got the same error, so I put mysql2 as adapter and restart my
server.
Thank you.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on
Hello, I'm trying to insert into my migrate but when I try on rails
console this error shows:
1.9.3-p0 :001 group = Group.new
= #Group id: nil, name: nil, description: nil, created_at: nil,
updated_at: nil
1.9.3-p0 :002 group.name = Group Name
= Group Name
1.9.3-p0 :003 group.description =
On Mon, Feb 13, 2012 at 20:43, Felipe Pieretti Umpierre
li...@ruby-forum.com wrote:
Hello, I'm trying to insert into my migrate but when I try on rails
console this error shows:
...
1.9.3-p0 :009 group email
NoMethodError: undefined method `' for #Group:0xa7efb80
This is the chunk you need
Mine work fine here, what rails version did you use.
Im using 3.2 here, make sure that the page include:
script
src=/assets/jquery_ujs.js?body=1http://localhost:3000/assets/jquery_ujs.js?body=1
type=text/javascript/script
or something similar.
Ahmy Yulrizka
On Tue, Feb 14, 2012 at 12:28 AM,
Say you have a web page that is supposed to continuously update the
positions of ships in the ocean or something similar. I am wondering
what is a good approach for this ? The page updates automatically
without the user hitting any buttons or clicking on anything.
What occurs to me is a timer
CanCan would be simple to achieve what you want.Install cancan gem and
define Ability.rb in models
Sample Abillity.rb might look like this.
class Ability
include CanCan::Ability
def initialize(user)
# Define abilities for the passed in user here. For example:
#
user ||=
46 matches
Mail list logo