On Sun, Feb 3, 2013 at 8:36 AM, Johnneylee Rollins
johnneylee.roll...@gmail.com wrote:
Additionally, you can put it inside its own class and use that as necessary.
It'd be similar to the previous answer, but instead of including that
behaviour, you'd get an instance of that class and pass in
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to
Thanks for your help.
I would like to raise another question related to this but different in
a new thread.
soichi
--
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 unsubscribe from this
On Sun, Feb 3, 2013 at 10:54 PM, Mike Usmar li...@ruby-forum.com wrote:
Hi,
We have 3 old websites left running on our servers with Rails version
1.2.3 (Ruby 1.8.5).
In light of the recent security vulnerabilities, does anyone know if its
possible to patch rails 1.2.3 against these? (e.g.
rails 3.2.11
My app needs a special query that searches an item from a Model.
Say, I have a model called Airport, having name:string field.
The app needs to find an airport by name.
One of the airport name is, for example,
JFK New York USA
Users may enter
JFK
well, this case it's easy.
But
On Sun, Feb 3, 2013 at 5:25 PM, rubyrookie asajn...@gmail.com wrote:
I have a remote form that is being submitted as html intead of javascript on
second attempt when clicking on update or create. The form gets submitted as
javascript on first attempt. The form gets submitted as html on second
I am new to ROR,
can you give me simple example using database,
Plz help me I am using MySql database
--
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 unsubscribe from this group and stop
On 4 February 2013 11:15, ANIL BABU M. li...@ruby-forum.com wrote:
I am new to ROR,
can you give me simple example using database,
Plz help me I am using MySql database
railstutorial.org is a good tutorial and is free to use online. It is
also (for me) the first in google
rails tutorial
Work
You should use something like a textual search. You can search for postgres
textual search, elasticsearch, solr. Or even if you want use a individual
query that hits the database you should try something like:
SELECT * FROM TABLE_NAME LIKE %STRING_HERE%
Sorry about the caps my intention was just
Thank you Walter - am going to give this is a chance and see how I
progress...
On Saturday, February 2, 2013 5:22:12 PM UTC-5, Walter Lee Davis wrote:
On Feb 2, 2013, at 11:58 AM, jatin...@gmail.com javascript: wrote:
Hello Rails experts...
I have an interesting problem...I'm sure
Thanks Hassan.S - I've done one mockup twitter-like site (through Rails
Tutorials lessons...) so moving on to next.
On Saturday, February 2, 2013 7:03:21 PM UTC-5, Hassan Schroeder wrote:
On Sat, Feb 2, 2013 at 8:58 AM, jatin...@gmail.com javascript:
wrote:
I have an existing set of
Hello Guys
I am using rails 3.2.8 and wickedpdf.
Its working well in local but not in production.Below is the production
logs error.
***\/var/www/apps/staging/shared/bundle/ruby/1.9.1/bin/wkhtmltopdf\
-q\file:///tmp/wicked_pdf_9892_0.html\
I think you can frame your WHERE clause by splitting the search field
value on a particular database field. e.g.
Assume your query is passed in search parameter. So params[:search] will
access the string passed by the search form. Lets take the example of
Airport and name.
#get the parameter
Hi all,
i am using 'jqgrid_rails', :git =
'g...@github.com:ctisol/jqgrid_rails.git', :tag = 'v1.2.6' is possible to
use both pagination and scroll loader. i want to use pagination as well as
scroll loader at same time. can u any one help me with solution ASAP.
thanks in advance. Im waiting
Hey guys,
I have been facing a race condition in rails 2.3 session. The problem is
well described here:
http://www.paulbutcher.com/2007/05/race-conditions-in-rails-sessions-and-how-to-fix-them/
I could reproduce the same scenario in rails 3.
Since this is not considered a problem for many and
On Monday, February 4, 2013 1:14:05 PM UTC, Rafael Sales wrote:
Hey guys,
I have been facing a race condition in rails 2.3 session. The problem is
well described here:
http://www.paulbutcher.com/2007/05/race-conditions-in-rails-sessions-and-how-to-fix-them/
I could reproduce the same
I understand that in order to functional test a nested resource, you need
to pass the id of the parent resource. I am having a problem testing the
'edit' action on the nested resource.
Here is the failing test.
test should get edit do
get :edit, id: capability_types(:one).id,
On 4 February 2013 14:28, Saravanan P saravana...@shriramits.com wrote:
Hello Guys
I am using rails 3.2.8 and wickedpdf.
Its working well in local but not in production.Below is the production logs
error.
***\/var/www/apps/staging/shared/bundle/ruby/1.9.1/bin/wkhtmltopdf\
-q
Yes Colin Law. The path is wrong. now i corrected under
config/initializers/wicked_pdf.rb
WickedPdf.config = {
:exe_path = '/usr/local/bin/wkhtmltopdf'
}
Thanks for the reply :)
On Mon, Feb 4, 2013 at 8:42 PM, Colin Law clan...@googlemail.com wrote:
On 4 February 2013 14:28, Saravanan P
Ainar Abramovich wrote in post #924154:
What steps are needed to integrate Google Adsense in Ruby on Rails
app? Just copy and paste of adsense code will not work..., hope somene
have done it before..., Regards
I want to register for google adsese but google always ask me to post a
snippet
I managed to get this to work. I used the fixture name instead of the rigid
foreign key id in the capability_test.yml fixture.
Thus,
#fixtures
capability_types.yml
one:
name: MyString
capability_category: one
two:
name: MyString
capability_category: one
On Monday, February 4, 2013
On Sunday, 3 February 2013 16:54:38 UTC-5, Ruby-Forum.com User wrote:
Hi,
We have 3 old websites left running on our servers with Rails version
1.2.3 (Ruby 1.8.5).
In light of the recent security vulnerabilities, does anyone know if its
possible to patch rails 1.2.3 against these?
On Saturday, 2 February 2013 11:03:15 UTC-5, Ruby-Forum.com User wrote:
mini@mini:~/Sites/music_library$ rake db:migrate
rake aborted!
couldn't parse YAML at line 28 column 6
/home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in
Hi Folks,
I have a simple question
When I have to stop the webrick server on my OSX Lion I use the follow
keyboard button:
Ctrl + Z
but after that I launch the command: ps
the webrick server is always active I have to kill the process with:
kill -9 [ID PROCESS]
exist a command to kill
Control-C always works for me - in fact, that's part of the message on screen
when I start it from command line.
Craig
On Feb 4, 2013, at 4:23 PM, Cluter Vipic wrote:
Hi Folks,
I have a simple question
When I have to stop the webrick server on my OSX Lion I use the follow
keyboard
ctrl-z doesn't kill a process, it moves it to the background; this is standard
UNIX/Linux behavior, not at all unique to OS X.
ctrl-c interrupts a process
On Feb 4, 2013, at 4:23 PM, Cluter Vipic wrote:
Hi Folks,
I have a simple question
When I have to stop the webrick server on my OSX
thanks,
C
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr...@googlegroups.com.
To
I thought default format is javascript.
On Monday, February 4, 2013 2:46:03 AM UTC-8, tamouse wrote:
On Sun, Feb 3, 2013 at 5:25 PM, rubyrookie asaj...@gmail.comjavascript:
wrote:
I have a remote form that is being submitted as html intead of
javascript on
second attempt when clicking
I am getting following warning while generating model, how to get rid of
this warning and what is cause for this warning. I am using rails 3.2.8
SECURITY WARNING: No secret option provided to Rack::Session::Cookie.
This poses a security threat. It is strongly recommended that you
provide
Hi guys
I'm a Rails virgin. I'm pulling my hair out with the install.
So far, I've checked that I've got Ruby Gems, see below;
Pauls-iMac:~ pauldoran$ ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
Pauls-iMac:~ pauldoran$ gem --version
1.3.6
I'm trying to
Thanks everyone!
Manoj's way worked for me!
I appreciate it.
soichi
--
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 unsubscribe from this group and stop receiving emails from it, send an
31 matches
Mail list logo