I installed ruby on my pc...then after that i got lib not found as one
error when i was installing rails... further all steps worked like
installing sqlite3 and creating test application...but wen i gave a cmd
called rake db:migrate, i got errors like these- rake aborted!
No Rakefile found
hi,
i am using https://github.com/mattmatt/acts_as_solr
which contains no each method in acts_as_solr/libs/
search_results.rb
so for me each is not working with ActsAsSolr::SearchResults
and i tried with https://github.com/mauricio/acts_as_solr plugin
wich results in following error
I was having this same issue when upgrading a 2.3.12 app to 3.1 and
adding Greg's suggestion
config.assets.digest = true
to production.rb fixed it for me.
Thanks!
On Sep 8, 9:00 am, Greg Reinacker gr2...@gmail.com wrote:
Do you have
config.assets.enabled = true
in your application.rb or
On 9 September 2011 07:10, pratik m. li...@ruby-forum.com wrote:
I installed ruby on my pc...then after that i got lib not found as one
error when i was installing rails... further all steps worked like
installing sqlite3 and creating test application...but wen i gave a cmd
called rake
Hi, guys.
My problem is when i touch the route like '/book/ruby' that will loads the
ApplicationController first,
and then loads the action ruby of the controller book, the loading order as
the following,
# First loading
class ApplicationController ActionController::Base
protect_from_forgery
As a old-school programmer I forgot, as usual, that nowadays visual
debuggers are around ;) And RubyMine's debugger was pretty good at
solving this task. Indeed, after few minutes I've found how to patch
things to get workable state.
Yesterday I've spend 1.5 hour wandering through sources without
Hi, guys,
my problem is when i touch the route like '/myc/mya' that will loads the
application_controller first,
and then loads the my_action of the my_controller, the loading order as the
following,
class ApplicationController ActionController::Base
protect_from_forgery
end
class
Hi all,
I have made one custom gem and I want to use that gem in my Rails 2.3
Application. It is installed,works fine and it is showing me into gem
list.
In this Gem's lib folder there is one mygem.rb file and I want to call
the method of this mygem.rb file. So, how can I achieve this??
Please
On 9 September 2011 08:29, coolesting coolest...@gmail.com wrote:
Hi, guys.
My problem is when i touch the route like '/book/ruby' that will loads the
ApplicationController first,
and then loads the action ruby of the controller book, the loading order as
the following,
# First loading
hi,
i am using https://github.com/mattmatt/acts_as_solr
it shows the following error
undefined method 'each' for
for this
results = Employee.find_by_solr(@id)
results.each do |emp|
puts emp.id
end
where plugin does not contains each method in acts_as_solr/libs/
search_results.rb
so for me
Because this situation is automatic, i don't know it needs to change
the controller book to which the anther controller or action.
So, i can't bundle it into route in that file, in other words, the
controller or action name will be stored to database.
On Sep 9, 12:45 am, Colin Law
Because this controller or action name is automatic, it will be stored
into database instead of that route file.
--
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
On 9 September 2011 09:40, coolesting coolest...@gmail.com wrote:
Because this controller or action name is automatic, it will be stored
into database instead of that route file.
(please leave some context from the message you're replying to to save
us the hassle of trawling through our deleted
Thank you Everaldo,
well, probably I will try it, but in the best way, I would like to try
some way with jQuery...
This is a bit worse to find some good source
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on
hi,
i am using acts_as_solr in plugin, in my table i got three
columns
emp_id, name, experience.
when i tried to run my application i got following error
Mysql::Error: Unknown column 'employees.id' in 'where clause': SELECT
`employees`.* FROM `employees` WHERE (employees.id in (NULL))
Thanks guys,
I think it is because I use this bit of line:
Bundler.require *Rails.groups(:assets = %w(development test))
I changed it to:
Bundler.require(:default, :assets, Rails.env)
and it works.
On Sep 9, 4:31 pm, Irish supair...@gmail.com wrote:
I was having this same issue when upgrading
Hi guys, the next problem:
I create a controller, (/controllers/rmagick_controller.rb), which have
aim to test an captcha
Actions:
def download # creates an captcha image
def show # show the page where image took place
def check # must check right captcha or wrong
Hi all,
I'm just deploying a few rails apps after upgrading to rails 3.1. I
have implemented the asset pipeline and everything works ok.
I'm deploying using Capistrano with the pre fabricated deploy/assets
recipe.
The problem I encounter is that the rake task takes like forever to
precompile
Hi!
I hadn't noticed this tutorial was too old until sending the e-mail.
I searched a little bit more and found this:
http://blog.bitcrowd.net/uploadify-paperclip-rails-3-and-sessions/
They use flash (Uploadify) with JQuery, but mostly of the answers points
this way.
Best Regards,
Everaldo
On
On Sep 9, 10:54 am, Misha Ognev li...@ruby-forum.com wrote:
Hi guys, the next problem:
I create a controller, (/controllers/rmagick_controller.rb), which have
aim to test an captcha
Actions:
def download # creates an captcha image
def show # show the page where image took place
def
Manny 777 wrote in post #1020917:
Thank you Everaldo,
well, probably I will try it, but in the best way, I would like to try
some way with jQuery...
This is a bit worse to find some good source
Hi, this is what I use: http://aquantum-demo.appspot.com/file-upload
It is relatively simple and
I posted a tut at:
http://boneheadcode.posterous.com/html5-paperclip-multiple-file-upload-and-atta
that includes a %counter, so a progress bar wouldn't be too much of a
stretch.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
Did you check the documentation I linked to?
http://code.paperplanes.de/acts_as_solr/rdoc/classes/ActsAsSolr/SearchResults.html
Specifically, have a look at the records() results() or docs() methods.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
Without the code used in the display action it's difficult to know
what's going on but I'd guess you're using an integer at some point
and that causes loss of precision.
On Sep 8, 4:37 am, Eugene de Winnaar edalb1...@gmail.com wrote:
Hi All
I have a idea that I am doing and it is working so
its searching for id where as i changed it as emp_id
is there any solution for this?
--
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 from this group,
hi,
i got data using this three and i got another doubt
in table i have changed id as emp_id, when i searched it
it throws an error like
Mysql::Error: Unknown column 'employees.id' in 'where clause': SELECT
`employees`.* FROM `employees` WHERE (employees.id in (NULL))
how can i over come
Frederick Cheung wrote in post #1017751:
The guts were moved into ActiveModel, but you can use it with active
record just like you used too. There was some fairly major refactoring
in rails 3 which confuses apidock quite a bit.
Word.
I eventually found the more modern docs for
Not a solution, but an end run around the problem: I used to use
acts_as_solr, but now I use rsolr and it works without problem. It's a
fairly similar API, but not identical, so it will take a little bit of
change to your app.
On Fri, Sep 9, 2011 at 4:25 AM, Pab prabu.ne...@gmail.com wrote:
hi,
Frederick Cheung wrote in post #1020782:
by default if you are working with integers you'll always get integers
back (by truncation). If you want floating point numbers then you
should convert the numbers you're working with to floating point
numbers first (using to_f), so
5 /2 will always
Hi,
I have a controller method that makes at least 3 calls to
external severs.
The method is an oauth callback where intially I was (within that
method) creating and saving a picture into rackspace, and then making
two consecutive calls to an external service. After all that the end
user sees a
manikyalarao padala wrote in post #1020751:
can i host ROR app in xampp in windows os.
http://whathaveyoutried.com/
--
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
for Rails hosting, give heroku a try.
if you want to host Rails and PHP, I recommend Linode. But you will need to
administer the server yourself.
On Fri, Sep 9, 2011 at 8:31 AM, Jazmin jazminschroe...@gmail.com wrote:
This has probably been asked many many times but we are looking to host a
On Sep 8, 6:02 pm, Dan daniel.nach...@gmail.com wrote:
On Sep 8, 2:48 pm, zxcv zxcvnos...@yahoo.com wrote:
...
require socket
myserver = TCPserver.new('localhost', 0)
It's TCPServer not TCPserver - note capital S
Dan Nachbar
Thanks Jazmin and Dan. That was the issue.
--
You
On Fri, Sep 9, 2011 at 1:25 AM, Pab prabu.ne...@gmail.com wrote:
i am using https://github.com/mattmatt/acts_as_solr
it shows the following error
...
so for me each is not working with ActsAsSolr::SearchResults
can any one provide me solution for this
The solution has already been
then download the 64 bit version...
On Sep 9, 5:23 am, Luis Lavena luislav...@gmail.com wrote:
On 8 sep, 11:32, Diego Waisman li...@ruby-forum.com wrote:
Hello everyone,
I wanted to learn about Ruby on Rails and its advantages and I decided
to start with some tutorials.
This has probably been asked many many times but we are looking to host a
non-profit small Rails 3 app, the budget is about $20-25/month. the number
of concurrent expected users in the beginning is rather low. besides the
rails app there might be also need to host other php web sites such
I'm a big fan of Heroku as well.
Another option, although they aren't specifically rails-oriented, is
dreamhost.com
Pros -
- Cheap -- Unlimited domains (excluding registration) bandwidth, storage,
shell accounts, email addresses, mailing lists, etc all for under
$10/month.
(They also have
On Fri, Sep 09, 2011 at 08:31:08AM -0500, Jazmin wrote:
This has probably been asked many many times but we are looking to host a
non-profit small Rails 3 app, the budget is about $20-25/month. the number
of concurrent expected users in the beginning is rather low. besides the
rails app there
Gordon Yeong wrote in post #1020881:
Hello, 7stud,
I followed your recommendations and I managed to get good results.
When I define the return data and then not put any render in the
controller action, it works.
parts_controller.rb extract starts
I experienced the same thing, although in my case it takes so long to
precompile on my server I don';t know if it ever finishes, waited 15 minutes
one time and it still had not finished.
My solution was to precompile locally which takes a few seconds, then copy
the public/assets directory to
I run into the same problem.
add this in Capfile:
load 'deploy/assets'
it will automatically do the deploy_assets task ( assets:precompile )
it will create a link under public directory
assets - $application_path/production/shared/assets/
for this to work you must use:
gem 'rails'
gem
First off Apologies for off topic post -- but I figure that more people
here will be familiar with sinatra than the general forum and the
particular code was adapted from Rails...
I need to tweak the sinatra FileStreamer class which is in module
Streaming, which is in module Sinatra in
I have a controller that produces (through its associated 'view'
displays summary information of) a number of arrays. On that view page
I would like links to other pages, one per array, which shows more
detailed information on the array in question. I tried passing the
array as a parameter to a
On 10 September 2011 00:41, Toby Rodwell li...@ruby-forum.com wrote:
What other ways are there to achieve what I am after? One
suggstion I saw was using a session - is that the best way (the Ruby
way) to pass data between controllers? Any suggstions gratefully
received.
If your data is as
Hi guys,
I have to implement a login using a Google account | Twitter account |
Windows Live account | Facebook account
I've never done this before and I've been researching a bit about the
available gems.
Does anyone has any recommendation for this? This is a Rails 3.1 application.
I've found:
-
omniauth + devise gems should do the trick.
On Fri, Sep 9, 2011 at 5:49 PM, Leonardo Mateo leonardoma...@gmail.comwrote:
Hi guys,
I have to implement a login using a Google account | Twitter account |
Windows Live account | Facebook account
I've never done this before and I've been
46 matches
Mail list logo