On 6 December 2011 02:00, Richard Lung weilung.n...@gmail.com wrote:
I want to implement small-scale Stack overflow.
any idea for reference or API I should use?
This should do it:
def stack_overflow
stack_overflow
end
stack_overflow
--
You received this message because you are
Haha!
@OP:
Please be more specific.
Dheeraj Kumar
On Tuesday 6 December 2011 at 2:14 PM, Michael Pavling wrote:
On 6 December 2011 02:00, Richard Lung weilung.n...@gmail.com
(mailto:weilung.n...@gmail.com) wrote:
I want to implement small-scale Stack overflow.
any idea for
I have been trying to create a rails 3.1.3 app using devise and have
started customizing devise to fit my needs. However, I have run into
a problem when a user edits their information. These two forms are
being rendered in a users show page. I have added this code to the
user controller helper:
On Mon, Dec 5, 2011 at 11:46 AM, Rog rogsm...@gmail.com wrote:
I am looking to use jenkins for CI and capistrano for deployments. It
seems whiskey_disk is also simple for deployment. Any recommendations
here?
Hi Rog,
I've been using both for a few years. I'm happy with both.
Capistrano,
On Mon, Dec 5, 2011 at 7:43 AM, Frederick Cheung
frederick.che...@gmail.com wrote:
On Dec 5, 4:57 am, sachin kewale sachinkew...@gmail.com wrote:
hi all,
i have application developed in following ruby ,rails and gem version i
want to upgrade it with latest version,can anyone tell what are
Hi guys
Windows 7
Ruby 1.8.6
I am using rmagick-2.12.0-windows-binary-gem-for-Ruby-1.8.6 i installed
successfully but when i run the server i am getting dialog box with error as
The Procedure entry point AutoGammaImageChannel could not be located in
the dynamic link library CORE_RL_magic.dll
I want to know that is there any rel attribute in %= link_to_peramlink %
like tag in html has.
For example: in html my link
I have %= link_to_permalink article,con, nil, my link, 5m % in
rails. Is there any rel attribute in that?
--
You received this message because you are subscribed to the
On Tue, Dec 6, 2011 at 7:25 PM, news.anand11 news.anan...@gmail.com wrote:
I want to know that is there any rel attribute in %= link_to_peramlink %
like tag in html has.
For example: in html my link
I have %= link_to_permalink article,con, nil, my link, 5m % in
rails. Is there any rel
Hello Clan,
Thanks for your reply. Actually i have the js file in script directory
not in public directory.
Is it ok if i do:- root_url + /script/file_name.js ?
- Hemant
clanlaw wrote in post #1035231:
On 5 December 2011 19:05, Hemant Bhargava li...@ruby-forum.com wrote:
Question is: How
hi
Thanks for ur reply, It was useful. i ve chaged my view in html as
follows
br
form
br
input type=radio name=radios1
onclick=this.parentNode.submit() value=%=@abc.a%%=@abc.a%
input type=radio name=radios1
onclick=this.parentnode.submit() value=%=@abc.b%%=@abc.b%
On 6 December 2011 11:55, Hemant Bhargava li...@ruby-forum.com wrote:
Hello Clan,
Thanks for your reply. Actually i have the js file in script directory
not in public directory.
Is it ok if i do:- root_url + /script/file_name.js ?
If you look at my reply you will see that will look for
Hi there,
I was trying to be a little creative and play around with ruby. In my
RoR model file I wrote this:
Hash['title', 'teaser'].each do |k ,v|
validates v.to_sym :presence = true
end
It's fairly obvious what I'm trying to achieve here, but the validation
is only set for the last element,
On Tue, Dec 6, 2011 at 9:25 PM, Nadeem Qureshi li...@ruby-forum.com wrote:
Hi there,
I was trying to be a little creative and play around with ruby. In my
RoR model file I wrote this:
Hash['title', 'teaser'].each do |k ,v|
validates v.to_sym :presence = true
end
Hash['title', 'teaser']
Before I call this a bug, would someone tell me if I'm missing something here?
Using 1.9.2 and 3.1.1... I can create a child if the relationship is
has_many, but not if the relationship is has_one.
rails new association_test
cd association_test
rails g model Poppa name:string
rails g model
Troll! xD LOL
2011/12/6 Dheeraj Kumar a.dheeraj.ku...@gmail.com
Haha!
@OP:
Please be more specific.
Dheeraj Kumar
On Tuesday 6 December 2011 at 2:14 PM, Michael Pavling wrote:
On 6 December 2011 02:00, Richard Lung weilung.n...@gmail.com wrote:
I want to implement small-scale Stack
On 6 December 2011 14:27, Bill Walton bwalton...@gmail.com wrote:
Before I call this a bug, would someone tell me if I'm missing something here?
Using 1.9.2 and 3.1.1... I can create a child if the relationship is
has_many, but not if the relationship is has_one.
rails new association_test
From one problem to another! I got a ready-made project and trying to
understand the code... And when i run the rake command i get:
$ rake sunspot:solr:run --trace
rake aborted!
126: The specified module could not be found. -
C:/Ruby193/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/1.9/mysql2.so
Good morning,
I am trying to use the Java's Xades signature with JRuby in my Ruby on
Rails application.
But since two days now, i am facing the following errors without
getting any response to solve them.
This is the corresponding java code from this page:
Hi,
It's me again, I was doing some easy example and it worked... but now
I've got some trouble
Is there a way to provide nokogiri data such as username and password?
because in a web I have to login first
Scrapy gives a way to simulate user login, and I was wonderin if
nokogiri can do the same
You wouldn't do it at the Nokogiri level. You need to read up on the open-uri
library, there are all sorts of goodies in there to manage authentication,
sessions, everything needed to create a Web client. That layer of your
application will get the text stream that you will send on to Nokogiri.
HI Colin,
On Tue, Dec 6, 2011 at 8:46 AM, Colin Law clan...@googlemail.com wrote:
snip
ruby-1.9.2-p290 :006 p.only_child.create(:name = 'sam')
OnlyChild Load (0.4ms) SELECT only_children.* FROM
only_children WHERE only_children.poppa_id = 1 LIMIT 1
NoMethodError: undefined method `create'
On 6 December 2011 15:12, gs84 salimat...@gmail.com wrote:
Good morning,
I am trying to use the Java's Xades signature with JRuby in my Ruby on
Rails application.
But since two days now, i am facing the following errors without
getting any response to solve them.
This is the corresponding
On Dec 6, 2011, at 12:29 AM, Frederick Cheung wrote:
On Dec 5, 9:55 pm, Craig White craig.wh...@ttiltd.com wrote:
Just starting out with a beginner book on jquery and the very first thing I
am trying fails (has to be me)
Rails 3.1 - other jquery things working including a poor example
I don't really know what I am talking about here, but that line tries
to call method PrivateKeyEntry on class KeyStore. Is PrivateKeyEntry
not in fact a class? Should it be KeyStore::PrivateKeyEntry or
something along those lines?
Colin
HI,
Thanks for your answer.
I see different results when running 'rake test' and when running 'rake
test:integration'.
When running all tests with 'rake test' all tests pass.
When running 'rake test:integration' I have a failed test because my
model fails to validate inclusion of an attribute before saving.
My model looks
On 6 December 2011 15:55, gs84 salimat...@gmail.com wrote:
I don't really know what I am talking about here, but that line tries
to call method PrivateKeyEntry on class KeyStore. Is PrivateKeyEntry
not in fact a class? Should it be KeyStore::PrivateKeyEntry or
something along those lines?
Hi
I use mongoid for rails application
and I try to do
@users = User.where(first_name = ? OR last_name = ? OR type = ?,
firstname, lastname, usertype)
but I am getting error
but when i put:
@users = User.where(:first_name = firstname, :last_name = lastname,
:type = usertype).all
the program run
Take a weekend off and watch Railscasts 001 - 300
On 4 Dez., 01:00, Mathew S. li...@ruby-forum.com wrote:
Here we go again. I apologize in advance. When I'm trying to learn both
Ruby and RoR it confuses the crap out of me..
I have looked at many MANY tutorials such
On Tue, Dec 6, 2011 at 3:58 AM, Guru R. li...@ruby-forum.com wrote:
input type=radio name=radios1
onclick=this.parentNode.submit() value=%=@abc.a%%=@abc.a%
The code is workin well except that as soon as a radio button is
selected the the page gets refreshed and the selection is not
On Dec 6, 8:08 am, karthik k cse.k.kart...@gmail.com wrote:
Hi guys
Windows 7
Ruby 1.8.6
I am using rmagick-2.12.0-windows-binary-gem-for-Ruby-1.8.6 i installed
successfully but when i run the server i am getting dialog box with error as
The Procedure entry point AutoGammaImageChannel
It seems that :http_basic_authentication [user, pass]
no longer works, I've tested with 2 webs and nothing,
Is there any other way?
Thanks
Javier
--
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
So I'm having an interesting issue with my database and associations.
I have three models, Users, Groups, and Roles. They are connected via
a join table that has user_id, group_id, and role_id on the same table.
A user is in a group, with a role. The same user can be in another
group with
Can you post some code surrounding this, show the open-uri method call you're
using?
Walter
On Dec 6, 2011, at 11:28 AM, Javier Quarite wrote:
It seems that :http_basic_authentication [user, pass]
no longer works, I've tested with 2 webs and nothing,
Is there any other way?
Thanks
On 06 Dec 2011, at 17:14, Kausik Bakshi wrote:
I use mongoid for rails application
and I try to do
@users = User.where(first_name = ? OR last_name = ? OR type = ?,
firstname, lastname, usertype)
but I am getting error
but when i put:
@users = User.where(:first_name = firstname, :last_name =
On Tue, Dec 6, 2011 at 7:07 AM, Somnath Mallick li...@ruby-forum.com wrote:
From one problem to another! I got a ready-made project and trying to
understand the code... And when i run the rake command i get:
$ rake sunspot:solr:run --trace
rake aborted!
126: The specified module could not be
On Tue, Dec 6, 2011 at 11:58 AM, Walter Lee Davis wa...@wdstudio.comwrote:
Can you post some code surrounding this, show the open-uri method call
you're using?
Walter
require 'nokogiri'
require 'open-uri'
doc = Nokogiri::HTML(open(url, :http_basic_authentication = [user, pass])
doc = Nokogiri::HTML(open(url, :http_basic_authentication = [user, pass])
I've made a mistake, that was another file.
what I'm using is:
open(url, :http_basic_authentication = [user, pass] )
doc = Nokogiri::HTML(open(url))
Javier
--
You received this message because you are subscribed to
On Dec 6, 4:49 pm, Eric B. li...@ruby-forum.com wrote:
One interesting behavior, was that, if the user and the role model both
had a group_id column, then when @user.roles was called (and likewise
@role.users), it would grab the group_id from the join_table for each
role, instead of the
On Dec 6, 2011, at 12:17 PM, Javier Quarite wrote:
I grab some info from tha main page of the url (so it works) but when I enter
to its login page with user/pass and try to get some, it seems to get
information from other place (I'm not even sure from where)
Try all this out in a terminal
I've been playing with Ruport, and just wanted to run this past the
group to see if anyone else has come across it.
The Ruport Book [1] give this example when it's explaining about using
acts_as_reportable to interrogate active record objects:
puts Book.report_table(:all, :only = :title,
On 6 Dec 2011, at 16:10, Ori Kremer li...@ruby-forum.com wrote:
I see different results when running 'rake test' and when running 'rake
test:integration'.
When running all tests with 'rake test' all tests pass.
When running 'rake test:integration' I have a failed test because my
model
This is getting perhaps a little too complex for my mind to handle.
What I'm trying to accomplish is to generate a list of of hosts which are
clickable links from my related Person model.
Person # return an array with links
def hostlist_linked
if self.host == nil then
results = []
Dear Peter Vandenabeele,
thanks for your really long answer and sorry for my late reply.. I'm
really short on time these days.. :(
A day before you wrote your answer I came up with a different solution:
http://noxx.penya.de/ruby-attachments.txt
This is the main class which was the binary in my
On 6 December 2011 19:32, Craig White craig.wh...@ttiltd.com wrote:
This is getting perhaps a little too complex for my mind to handle.
What I'm trying to accomplish is to generate a list of of hosts which are
clickable links from my related Person model.
Person # return an array with links
Hi,
I'm new to Rails and can't seem to get it working with MySQL.
I am running Ruby 1.9.3, Rails 3.1.3, and MySQL 5.5.17 (windows 7
64bit).
I create the most basic rails project (rails generate demo index,
uncomment the last line of the routs.rb file), run the sever and
navigate to page and
On 6 December 2011 20:42, stephen d. li...@ruby-forum.com wrote:
Hi,
I'm new to Rails and can't seem to get it working with MySQL.
I am running Ruby 1.9.3, Rails 3.1.3, and MySQL 5.5.17 (windows 7
64bit).
I create the most basic rails project (rails generate demo index,
uncomment the last
On 5 December 2011 23:49, Dan King li...@ruby-forum.com wrote:
I'm considering swapping out Grails for Ruby on Rails as the front-end
for my application, which is currently comprised of a Grails front-end
and a couple of RESTful backend Java Web Services.
Can I ask why you want to switch from
On Dec 6, 2011, at 1:39 PM, Colin Law wrote:
On 6 December 2011 19:32, Craig White craig.wh...@ttiltd.com wrote:
This is getting perhaps a little too complex for my mind to handle.
What I'm trying to accomplish is to generate a list of of hosts which are
clickable links from my related
Phil Dobbin wrote in post #1034843:
On 3/12/11 03:05, Borislav P. li...@ruby-forum.com wrote:
[...]
I have VERY limited knowledge of how git works, but I do know that I
don't use it at all on my machine, and I shouldn't have any unstaged
changes.
If anyone can help me overcome this
Thank you fro your help.
I ve used the :: unless of . and it seem to work so i have the
following lines now:
password = JString.new(changeit)
ks = KeyStore.getInstance(JKS)
ks.load(FileInputStream.new(keys/keystoreCps.jks),
password.toCharArray())
keyEntry = ks.getEntry(mykey,
On 6/12/11 22:32, Borislav P. li...@ruby-forum.com wrote:
Thanks for the response. Git is indeed installed on my machine (it may
even be redundantly installed more than once, if that is possible, once
with Lion and once with Macports). Do you have any idea what the
problem is with this
Colin Law wrote in post #1035428:
On 6 December 2011 20:42, stephen d. li...@ruby-forum.com wrote:
ActiveRecord::ConnectionNotEstablished
Some questions:
Have you setup the database name username and password in database.yml?
Have you created the database
rake db:create
and run the
On Tue, Dec 6, 2011 at 6:24 PM, stephen d. li...@ruby-forum.com wrote:
I've honestly spent 2 days trying just about every piece of advice on
the internet. The bottom line is that the latest version of Ruby,
Rails, and MySql do not work together. Or if they do, nobody knows how
to make them
Thank for ur reply
i m not sure about how to write the form for this radio_button. if i use
the form_for @abc where abc is the database i m not able to read input
with params[:]. i did use the form as
%= form_for(@abc) do |f| %
tr%=f.radio_button:e,@abc.a% %=f.label:rating_1,@abc.a%/tr
when I try to rake test:units, it fails. please refer to the attached
image. What should I do?
Thanks!!
Attachments:
http://www.ruby-forum.com/attachment/6824/test_run_message.jpg
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
I am trying to deploy my rails application to EC2 Instance with
Capistrano from local git repository as a root user. I am following
this
http://blog.bhushangahire.net/2010/02/17/setup-capistrano-to-deploy-rails-application-on-amazon-ec2-with-git/
url.
I am having trouble with this step below.
hi all,
when i update my Ruby :1.9.2 and Rails :2.3.4 and gem :1.8.12 version i get
following error ,
please help me to resolve this issue,
D:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `eof?'
D:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `run'
hi all,
i have one got one more error ,but i can't figure it why this coming ?
please anyone who knows details about reply to this post.
can't convert ActiveRecord::StatementInvalid into String
Thanks and Regards
Sachin S. Kewale
--
(¨ `·.·´ ¨) Always
`·.¸(¨ `·.·´ ¨) Keep
(¨ `·.· ´¨)¸.·´
On Wed, Dec 7, 2011 at 2:45 PM, sachin kewale sachinkew...@gmail.comwrote:
hi all,
i have one got one more error ,but i can't figure it why this coming ?
please anyone who knows details about reply to this post.
can't convert ActiveRecord::StatementInvalid into String
it would help a lot
Hi Luis Lavena
Thank you
I will do the same and revert back
Karthik.K
On Tue, Dec 6, 2011 at 9:58 PM, Luis Lavena luislav...@gmail.com wrote:
On Dec 6, 8:08 am, karthik k cse.k.kart...@gmail.com wrote:
Hi guys
Windows 7
Ruby 1.8.6
I am using
I created a file 'csv_string' as follows
def export_raw
@device = Device.find_by_id( params[:id] )
@messages = @device.devmessages.all( :order = id, :conditions =
[packettime = ? and packettime = ?, params[:start_time],
params[:end_time]] )
csv_string = FasterCSV.generate do |csv|
61 matches
Mail list logo