On 4 September 2012 01:14, Bruce Whealton br...@whealton.info wrote:
Hello,
Thanks Walter for your suggestions and information. I definitely
follow advice. Here's some surprising news. I actually got everything
working right inside Windows while still trying to get things to work in
I hope you need to include the required javascript files in the layout.
On Monday, September 3, 2012 10:02:07 PM UTC+5:30, Ruby-Forum.com User
wrote:
I 'm getting like this while running server..
Attachments:
http://www.ruby-forum.com/attachment/7712/Screenshot.jpg
--
Posted via
Thanks for your response
On Sat, Sep 1, 2012 at 11:17 AM, Marcelo de Moraes Serpa
celose...@gmail.com wrote:
Putting aside the fact that you didn't give enough information about to
diagnose the problem, I'll only answer because it's obvious.
The answer to your question lies in the origins
%= stylesheet_link_tag components/jscrollpane/jscrollpane.css,
:media=screen %
%= stylesheet_link_tag components/tipsy/tipsy.css, :media=all %
what is this :media?
and what is the this all and screen
if there are more than screen and all in media tag than explain it
also
Hi,
I created session::controller as u said and also used routes
like devise_for :users, :controllers = { :sessions = users/sessions }
But i got an error Routing Error
uninitialized constant Users
Try running rake routes for more information on available routes.
Please advice...
On Mon,
On 4 September 2012 02:54, Samir S. li...@ruby-forum.com wrote:
Ok, can you please delete my reply.
Not possible, this is a mailing list not a forum (though you may be
using it on a forum-like interface). Once messages are distributed to
inboxes around the world they cannot be deleted.
Colin
On Tue, Sep 4, 2012 at 2:12 AM, Ashokkumar Yuvarajan
ashokku...@shriramits.com wrote:
Hi,
I created session::controller as u said and also used routes like devise_for
:users, :controllers = { :sessions = users/sessions }
But i got an error
Routing Error
uninitialized constant Users
On 4 September 2012 05:49, Balaji G. li...@ruby-forum.com wrote:
balaji@balaji-desktop:~$ cd myrails
balaji@balaji-desktop:~/myrails$ cd gmaps
balaji@balaji-desktop:~/myrails/gmaps$ rails s
/usr/local/lib/ruby/1.8/webrick/httpservlet/cgihandler.rb:20: Use
RbConfig instead of obsolete and
how can i install those javascript files..can you tell me ?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe
On 4 September 2012 08:01, Fahim Patel pafa...@gmail.com wrote:
%= stylesheet_link_tag components/jscrollpane/jscrollpane.css,
:media=screen %
%= stylesheet_link_tag components/tipsy/tipsy.css, :media=all %
what is this :media?
and what is the this all and screen
if there are
I have user.rb model.
On Tue, Sep 4, 2012 at 1:19 PM, Jordon Bedwell envyge...@gmail.com wrote:
On Tue, Sep 4, 2012 at 2:12 AM, Ashokkumar Yuvarajan
ashokku...@shriramits.com wrote:
Hi,
I created session::controller as u said and also used routes like
devise_for
:users, :controllers =
Colin Law wrote in post #1074484:
On 3 September 2012 19:11, ahmed el attar li...@ruby-forum.com wrote:
Hello,
I'm new ruby developer, any idea about : send text file to lpt1 port
where i have installed an intermec printer?
Are you trying to do this on the client PC or on the server? If
I can successfully get the contacts from google using OAuth gem in rails.
my gmail configuration is :
:google={
:key=***,
:secret=***,
:expose = true,
:scope=https://www.google.com/m8/feeds/;
}
now i want to get contact from yahoo and hot mail. How to get that contact
I have
On 4 September 2012 10:25, ahmed el attar li...@ruby-forum.com wrote:
Colin Law wrote in post #1074484:
On 3 September 2012 19:11, ahmed el attar li...@ruby-forum.com wrote:
Hello,
I'm new ruby developer, any idea about : send text file to lpt1 port
where i have installed an intermec
On 4 September 2012 10:39, news.anand11 news.anan...@gmail.com wrote:
I can successfully get the contacts from google using OAuth gem in rails. my
gmail configuration is :
:google={
:key=***,
:secret=***,
:expose = true,
:scope=https://www.google.com/m8/feeds/;
}
Thanks, but i want send text file from server to client (lpt1 port),
it's possible?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to
Hassan Schroeder wrote in post #1074525:
On Mon, Sep 3, 2012 at 7:57 PM, Dave Castellano li...@ruby-forum.com
wrote:
I am placing an undefined method after file.write(Hello). Crashes the
program and leaves the file so I can open it - its empty...
Interesting programming style :-)
Your error saying that you don't have Users model and controler may be
you created the devise as Admin.
If so please replace user with admin in all places.
If u want to understand flow take new project and try documentation
(https://github.com/plataformatec/devise
On Tuesday, 4 September 2012 06:27:52 UTC-5, Ruby-Forum.com User wrote:
Yes, I'm learning to program on my own... I don't believe anyone would
pay for my work :-)
Thanks, you were right - it is writing to the file and I can see it
after closing.
Can I follow with one last question...
Hello,
I try to follow this tutorial :
http://guides.rubyonrails.org/getting_started.html
But when I do rails generate controller home index I get this output :
[code]
Usage :
rails new APP_PATH [options]
[/code]
I have Ruby version 1.9.3
Roelof
--
You received this message because
Hi everyone! I'm a newbie engineer.
I started rails programming, but I'm learning alone and can't understand
other rails cord so much.
So I wanna have friend with other newbie rails engineers and share a
process of making apps.
It is not for sharing the result of programming like Github, but
I posted this on StackOverflow, and didn't get much love. I'm hoping
someone here can help me. Thanks in advance!
I have a form that displays information about a single commercial real
estate property. I am trying to create a feature on it that allows the user
to upload files to Amazon S3
I am a newbie in Ruby on Rails.I want to log events from my rails
application to DB. I am using *gem audited-activerecord, ~ 3.0.0.rc2*.
This is used for CRUD operations. But I want to use it in controllers while
application login, logout other things. How can I achieve this?
--
You
I am watching on
railscastshttp://railscasts.com/episodes/196-nested-model-form-part-1?view=asciicast
and
tried to write the example with my own hands. But I got an trouble with the
step of: Creating The Form.
It requires creating association between Survey and Question. But this
On Tuesday, September 4, 2012 12:49:29 PM UTC+1, Jordon Bedwell wrote:
I would personally write that method to be a little safer IMO. Yeah it's
true that you can sometimes guarantee that problems won't happen but
relying on that slim chance is bad, it's better to let file closing
On 3 September 2012 19:12, roelof rwob...@hotmail.com wrote:
Hello,
I try to follow this tutorial :
http://guides.rubyonrails.org/getting_started.html
But when I do rails generate controller home index I get this output :
[code]
Usage :
rails new APP_PATH [options]
[/code]
Are you in
On 3 September 2012 12:44, jasonlhy jason...@gmail.com wrote:
I am watching on railscasts and tried to write the example with my own
hands. But I got an trouble with the step of: Creating The Form.
It requires creating association between Survey and Question. But this
association cannot be
stacktrace:
Started GET /oauth_consumers/yahoo for 127.0.0.1 at 2012-09-04 17:50:39
+0530
Processing by OauthConsumersController#show as HTML
Parameters: {id=yahoo}
User Load (0.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2
LIMIT 1
YahooToken Load (0.1ms) SELECT
Op dinsdag 4 september 2012 14:08:23 UTC+2 schreef Colin Law het volgende:
On 3 September 2012 19:12, roelof rwo...@hotmail.com javascript:
wrote:
Hello,
I try to follow this tutorial :
http://guides.rubyonrails.org/getting_started.html
But when I do rails generate controller
AlexD wrote in post #1074276:
What is the simple way in Rails to do user authentication via Google?
OmniAuth:
https://github.com/intridea/omniauth
Authentication strategies:
https://github.com/intridea/omniauth/wiki/List-of-Strategies
Google specific strategies:
What I actually find most important is being able to do a well worded
google search (I sometimes wonder if there should be a qualification for
that in itself lol?). The Ruby and the Rails forums are very friendly and
helpful.
I usually start a google search with Ruby or Rails and the
I have Ransack set up to do simple attribute-based search in my application.
Now, I'm trying to add TS to the app to enable full-text searching. Trouble is,
both of these define a Model#search method. Has anyone here ever tried this
combination? Is there a way to rename the search method on
On Sep 4, 2012, at 12:07 PM, Walter Lee Davis wrote:
I have Ransack set up to do simple attribute-based search in my application.
Now, I'm trying to add TS to the app to enable full-text searching. Trouble
is, both of these define a Model#search method. Has anyone here ever tried
this
Frederick Cheung wrote in post #1074604:
On Tuesday, September 4, 2012 12:49:29 PM UTC+1, Jordon Bedwell wrote:
file.rewind
$stdout.puts file.read # Will output the source without evaling.
# raise # Uncomment this line to see what I mean about ensure.
ensure
My rails application has a helper method 'current_project' in the
projects_helper file. In my application_controller, I include the
ProjectsHelper module.
After installing the forem engine (for forums), when I navigate to /forums
I get an error that current_project is not known.
What do I
7stud -- wrote in post #1074532:
Your route syntax is confusing to me. How about:
controller :sessions do
match '/login' = :login_create, :via = :post
match '/login' = :login, :via = :get
match '/logout' = :logout
end
...which is pieced together from here:
I have two models that are associated with has_and_belongs_to_many, and
I'm trying to create a method that computes something with attributes
from both models, but I'm getting an undefined method error with the
code I'm using below. What am I missing?
Model_1.rb
Class Model_1 ActiveRecord::Base
On 4 September 2012 18:58, Sachin S. li...@ruby-forum.com wrote:
Class Model_1 ActiveRecord::Base
...
has_and_belongs_to_many :model_2
def some_method
attr_1 * Model_2.find(model_2_id).attr_I_need
end
If the relationship is HABTM, you won't have a model_2_id attribute to
find by,
Hi all,
I have successfully installed mongrel, mongrel_service, win-32 service
and have also successfully installed the service on my computer and is
starting successfully.
The major problem am having now is that, my application uses a bundle of
gems so under normal circumstances mongrel_rails
Hi Michael,
Thanks for the reply.
I actually have created the join table as documented in the rails
guides, with the right naming convention and all. It's got a model_1_id
and a model_2_id, and an index
Sure, I can give some more details. I'm creating a golf application that
let's users
Sa S. wrote in post #1074685:
Hi Michael,
Thanks for the reply.
I actually have created the join table as documented in the rails
guides, with the right naming convention and all. It's got a model_1_id
and a model_2_id, and an index
Sure, I can give some more details. I'm creating a golf
Robert Walker wrote in post #1074687:
class Player
def recommended_courses
Course.where(courses[:handicap].gt(a_player.handicap))
.and(courses[:handicap].lt(a_player.handicap)
end
end
Just realized after posting that this is a silly example, but should get
you on the right
Thanks for the help! Although I'm not sure I totally understand it,
still a bit of a noob. So if I wanted to do something as simple as
subtract the user's handicap from the course's handicap, how would I
create a method for that in the Player model? (sorry maybe you might
have done it already
On Tue, Sep 4, 2012 at 9:37 AM, Dave Castellano li...@ruby-forum.com wrote:
Tempfile.open([hello_world, .rb], ./lib/generators) do |file|
If the file is a method, how can I call the method here and get the returned
arguments?
The file can't be a method, but it may contain a string describing
I think so. Im working with Railsinstaller on Win7.
And I'm working in the c:/railsinstaller/ruby.1.9.3 directory.
Oh no... That's Rails' main directory not your App's directory. The first
step should be the app's creation with:
rails new application_name
Than you should change your
Sa S. wrote in post #1074690:
Thanks for the help! Although I'm not sure I totally understand it,
still a bit of a noob. So if I wanted to do something as simple as
subtract the user's handicap from the course's handicap, how would I
create a method for that in the Player model? (sorry maybe
Sa S. wrote in post #1074690:
Thanks for the help! Although I'm not sure I totally understand it,
still a bit of a noob. So if I wanted to do something as simple as
subtract the user's handicap from the course's handicap, how would I
create a method for that in the Player model? (sorry maybe
Okay great, thanks! I think I'll actually trying doing this in the join
table. I guess my last question would be how would I call that method
from that join table in let's say the Player show view?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
The problem isn't in the route, but in the strange behavior of get and
post, instance methods of ActionController::TestCase::Behavior
My rspec tests seem to work as you would expect. I used a controller
named Dogs to test the routes:
require 'spec_helper'
describe Dogs Pages do
describe
...as stated in the tutorial here:
3.2 Creating the Blog Application
To begin, open a terminal, navigate to a folder where you have rights to
create files, and type:
$ rails new blog
This will create a Rails application called Blog in a directory called
blog.
You can see all of the switches
Hassan Schroeder wrote in post #1074693:
On Tue, Sep 4, 2012 at 9:37 AM, Dave Castellano li...@ruby-forum.com
wrote:
Tempfile.open([hello_world, .rb], ./lib/generators) do |file|
If the file is a method, how can I call the method here and get the returned
arguments?
The file can't be a
I would like to bump this. Simple question. When will the first
element of an array passed as first argument to form_for ever be an
instance of RoutesProxy? The rails source looks for this, so I am sure
someone out there has examples.
On Sep 3, 2:05 pm, John Merlino stoici...@aol.com wrote:
when
Hi Folks Good morning,
Am new to rails.
I used devise in my project ,i need to write some conditions in my session
controller.How can i generate devise session controller.
I have user.rb model.
Steps which i made:
1. Generate rails g controller session
2. Session controller generated
3.
53 matches
Mail list logo