Hi Guys,
I'm using sunspot_rails-2.0.0.pre.120417 with postgres
In model i added searchable columns:
searchable do
string :display_title
integer :created_at
integer :ending_at
end
order_by(:created_at,:desc) not working.
ruby-1.9.2-p180 :027 > res=Listing.search{o
I have an binary field in my database where i am storing images uploaded by
the user.
Now I need to fetch all these images from the database and store them in
file system.
Do Ruby provide method to write a blob data into a file system.
--
You received this message because you are subscribed t
thanks Rodriguez for your reply i am using rails 2.3.8 does whenever will
work in 2.3.8. i tried but i am missing something i can not run a file with
whenever i was following this link
http://railscasts.com/episodes/164-cron-in-ruby can you plz help me
out.asyou said to add those 2 line in deploy.r
hi,
I have 1+ year experience in ruby on rails.I will work for you.let me
know if you are interested vishal.singh...@gmail.com .
Regards,
Vishal Singh
Ruby On Rails Developer
On Tue, May 8, 2012 at 3:45 AM, Agis A. wrote:
> I'm a junior rails developer that have already finished the fir
If the config.ru trick doesn't work for you, you should try the same but only
initializing the file in config/boot.rb, instead. This should work for sure.
Sent from my iPod
On 06/05/2012, at 16:22, Guillem Vidal wrote:
> hi there!!
>
> I'm just trying to run a script that adds certain methods
You can take a look at the whenever gem, it provides a nice way to manage
cron jobs through ruby and if you are deploying using capistrano you just
need to add this two lines to your deploy.rb file:
set :whenever_command, "bundle exec whenever"
require "whenever/capistrano"
Give it a try =D
Best
Hi Rodrigo,
I'll take a look.
Thx :D
2012/5/6 Rodrigo Vieira
> Try the guides: http://guides.rubyonrails.org/action_mailer_basics.html
>
> You should also look for your Linode SMTP settings.
>
> On 06/05/2012, at 19:21, Bruno Meira wrote:
>
> Hi Guys,
> I created a mail server at Linode.
> I wo
I'm a junior rails developer that have already finished the first stage of
my first real-world app. Let me know if you're interested:
corestudios...@gmail.com
On Monday, 7 May 2012 06:39:34 UTC+3, Jason wrote:
>
> I am in immediate need of a Ruby on Rails Developer to help us
> complete a proj
http://stackoverflow.com/q/10422047/280069?sem=2
--
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, send email to
rubyonrails-talk+unsub
On Monday, May 7, 2012 6:10:43 PM UTC-3, Jedrin wrote:
>
>
> I am trying to work with generating really large CSV files from
> active record. (This is actually an end case test however) I am trying
> this with
> a set of active records that is 70 records which is just a test
> case that I
Hi,
I'm trying to configure nginx to serve a video file on behalf of my
rails 3 backend using xsendfile. I want rails to redirect the request
for http://myapp.com/recipes/1/video to nginx to handle. Unfortunately,
my current configuration results in a 404 (page not found) error. I've
pasted my ngi
I am trying to work with generating really large CSV files from
active record. (This is actually an end case test however) I am trying
this with
a set of active records that is 70 records which is just a test
case that I have, though it is very large. The type of find() below is
supposed to w
I have a function that displays all depts and related info from other
tables in my Department model, such as:
def dept_and_hospital
"#{name} (#{floor.building.hospital.name})"
end
... which is used in my view, like:
<%= f.label :department_id %>
<%= collection_select(:device,
Rodrigo Vieira wrote in post #1059873:
> Well, I'd create a file and put it in /lib and include/initialize that
> file in the config.ru file before the actual app initialization (run
> YourApp::Application).
That worked! The problem is that this is only working when rails app
starts, not on rake
For those of you who recommend the public folder, the only problem with
that for me and I'm sure others is that we may want some uploads to be
private, and prevent users from simply browsing the public directory on
our webapps to look at every-bodies uploads. By using our own custom
folders we
Jeremy Walker wrote in post #1059759:
> On 6 May 2012 22:13, Guillem Vidal wrote:
>
>> > You could just reopen ActiveRecord::Base. Create a new initializer (a
>> > http://www.ihid.co.uk
>> end
>> end
>>
>
> OK, so two more suggestions:
> 1) Use an after_initialize block in your config (
> h
On 7 May 2012 17:34, Jeremy Walker wrote:
>
>
> On 7 May 2012 08:31, rahaji...@bankofbaku.com wrote:
>
>> Hi, I'm using Rails 3.2.1 and following through Mike Hartl's
>> tutorial.
>>
>> irb(main):024:0> User.first
>> User Load (0.6ms) SELECT "users".* FROM "users" LIMIT 1
>> => ...
>> irb(main)
On 7 May 2012 08:31, rahaji...@bankofbaku.com wrote:
> Hi, I'm using Rails 3.2.1 and following through Mike Hartl's
> tutorial.
>
> irb(main):024:0> User.first
> User Load (0.6ms) SELECT "users".* FROM "users" LIMIT 1
> => ...
> irb(main):025:0> User.last
> User Load (1.0ms) SELECT "users".* F
On May 5, 3:02 pm, overlap wrote:
> Hi there!
>
> % rails c
> Loading development environment (Rails 3.2.3)
> irb(main):001:0> Project.all
> Project Load (0.1ms) SELECT "projects".* FROM "projects"
> => [# "2012-05-05 13:05:44", updated_at: "2012-05-05 13:05:44">]
> irb(main):008:0> a = Aucti
Hi, I'm using Rails 3.2.1 and following through Mike Hartl's
tutorial.
irb(main):024:0> User.first
User Load (0.6ms) SELECT "users".* FROM "users" LIMIT 1
=> ...
irb(main):025:0> User.last
User Load (1.0ms) SELECT "users".* FROM "users" ORDER BY
"users"."id" DESC LIMIT 1
=> ...
Here's what
Hi, I read this commit (
https://github.com/rspec/rspec-rails/commit/ff6a9ff9555eaead5167497dd7d2e6c5519171c7)
to eliminate process_view_paths warning. But, process_view_paths still
warning and I don't understand why.
Warning message: DEPRECATION WARNING: process_view_paths is deprecated and
will
I am in immediate need of a Ruby on Rails Developer to help us
complete a project. The majority of our application is already built
and it's running on our development web server, we just need to finish
up some remaining requirements, resolve some defects, finish testing
and deploy it in conjuncti
Be aware that, it is not safe to set passwords changeable via mass-assignment.
On 06/05/2012, at 05:10, Sergey Ezhov wrote:
> I simply add in model:
> attr_accessible ... :password, :password_confirmation, ...
>
> it work
> but it can not absolutely truly
>
> --
> Posted via http://www.ruby-f
Well, I'd create a file and put it in /lib and include/initialize that file in
the config.ru file before the actual app initialization (run
YourApp::Application).
On 06/05/2012, at 16:22, Guillem Vidal wrote:
> hi there!!
>
> I'm just trying to run a script that adds certain methods to all
>
Try the guides: http://guides.rubyonrails.org/action_mailer_basics.html
You should also look for your Linode SMTP settings.
On 06/05/2012, at 19:21, Bruno Meira wrote:
> Hi Guys,
> I created a mail server at Linode.
> I would like to configure my rails app to send mails using one of this mail
Hi there!
I started learning Rails using the guides.rubyonrails.org/*
documentation, and I have started a simple project with only two model
classes so start with. However, I've came across some errors, and with
some trial I got it working. I have a final question about the error
"Can't mass-assign
Here's a bit of information on building out an API using security and API keys.
http://stackoverflow.com/questions/10470509/building-an-api-as-a-service/10470584#10470584
I'd use 'devise' to manage api users with token auth enabled and have
the token be their api key.
I've done this before and i
Hello,
On Monday, May 7, 2012 10:48:35 AM UTC-3, Jedrin wrote:
>
>
> The test seems to fail because the one downloaded by hand has
> newlines of the form
> "\r\n" whereas the one that the test program downloads using rack/test
> has newlines of the form
> "\r\r\n"
>
>
If you want identical f
I have this sinatra app test where I downloaded a file by hand from
the app and stored it in the test area. I then have my test program
download the same file, save it and compare the two.
The test seems to fail because the one downloaded by hand has
newlines of the form
"\r\n" whereas the one t
On Monday, May 7, 2012 5:58:10 AM UTC-3, Ruby-Forum.com User wrote:
>
> Hi,
>
> I have installed the same devkit on other 2008 server 64 bit which is
> Windows 2008 server Standard edition and using that I was able to
> install ruby-odbc gem.
> The server version which I am trying to install no
On 7 May 2012 13:05, Beau wrote:
> Hey guys.
>
> I'm still a super rails noob, and trying to figure this out in relation to
> learning how to write controllers/models and where stuff should go.
I suggest first working through some Rails tutorials.
railstutorial.org is good and is free to use onli
Hey guys.
I'm still a super rails noob, and trying to figure this out in relation to
learning how to write controllers/models and where stuff should go.
Basically I have my models set up with a many-to-many mapping of API keys
to users. There's three models here, users, api_keys_users, and
ap
I think what Guillem is saying is that you can still do it with jQuery/
Javascript like you did before and that you'll need to control the
logic yourself.
On May 6, 5:02 pm, rubix Rubix wrote:
> Hi,
> I am trying to implement an autocomplete form with rails, I used jquery
> in a first version, to
It might not have anything to do with your problems but when I develop/
test in Windows I get the same type of error when the log files get
big. The only thing I have to do to keep going is clear them up.
On Apr 30, 8:28 am, "Amir Z." wrote:
> I am working with Agile Web Development Book. I creat
Rails 3.1.3
I'm trying to apply TwitterBootstrap and LESS
bundle install the following
gem 'less-rails-bootstrap', '~> 2.0.4'
Normal Twitter bootstrap is applied without problem.
But I need to change themes to my own creation or downloaded from
http://bootswatch.com/
My question is WHERE exa
Hi,
I have installed the same devkit on other 2008 server 64 bit which is
Windows 2008 server Standard edition and using that I was able to
install ruby-odbc gem.
The server version which I am trying to install now is on a windows 2008
server Enterprise edition.
I do not think it is the problem o
On 30 April 2012 13:28, Amir Z. wrote:
> I am working with Agile Web Development Book. I create complete app but
> when I am trying to test my first unit testing. Its showing following
> error.
>
>
> 1) Error:
> test_truth(ProductTest):
> Errno::ENOENT: No such file or directory - rails.png
>
Hi all
I am working on Rails 2 application where i need to provide
web services for iphone app.
I am using authlogic gem for authentication.For web services i am
using single access token(user_credentials="X").
Every thing is working fine except session[:something] for API
cal
38 matches
Mail list logo