Hi All,
I'd like to introduce you guys to a free open source marketplace called
Sharetribe.
It's built with Ruby on Rails and is free. Their is a forum which can be
found here http://sharetribe.freeforums.net
I hope this will be of interest to some people here,
Thanks
--
Posted via http://www
A lot of really helpful people on these forums.
I'll bet this person went ahead and did this:
production:
secret_key_base: 12345
Someone probably could have mentioned that <%= ENV["SECRET_KEY_BASE"] %>
loads the config from something called an "environment variable", in
this case SECRET_KEY_
> Thanks, I undestood. And what should I do? I can't run script as other
> user when boot?
I've already solve my problem. I wrote 'su -l user -c command' in my
local.start file, and everything is ok.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subsc
> Environment 1: running a script as user 'root' at boot time
> Environment 2: running a script as you in a login shell
>
> One of these things is not like the other :-)
>
Thanks, I undestood. And what should I do? I can't run script as other
user when boot?
--
Posted via http://www.ruby-forum
Hello,guys. I have a problem with unicorn start on boot (OS is gentoo).
I write in /etc/local.d/local.start file:
#!bin/sh
/etc/init.d/unicorn start
and when I reboot computer it can't start my rails application and in
unicorn.stderr.log writes 'require cannot load such file --
bundler/set
> What change did you make following the link I posted?
Add path in shell script. Is it necessary to start unicorn from init.d
directory? Or it doesn't matter?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rail
> The error you posted says it is 1.8.7
I understand that and can't find the solution.
--
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 f
> So it is still running the wrong ruby?
It says that ruby is 2.1.0, but is still gives the error.
--
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 receiv
> Googling for
> kgio segmentation fault
> found this as the first hit, is it helpful?
> https://www.digitalocean.com/community/questions/unicorn-not-starting
Yes, I have already viewed that.It didn't help me.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you a
> What does the error say now? Copy/paste here to avoid typos.
The error is written in my question.
--
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 rece
Ok, I have done that from script and it shows that ruby is 2.1.0, but
the error with kgio gem still exists.
--
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 st
> Two things:
> 1. Add an echo to output the version of ruby used
> 2. Let the first/initialization command be to use the right version of
> ruby, say something like `rvm use ruby-2.x.x`
rvm current and default is set to ruby-2.1.0
--
Posted via http://www.ruby-forum.com/.
--
You received this
> What is the default PATH of the user that runs startup scripts?
when I call echo $PATH there exist path to my ruby 2.1.0 bin
--
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 fro
> Really? So the actual error message isn't relevant to your problem?
>
ruby -v gives me 2.1.0, but I can't understand why it try ruby 1.8.7
--
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 u
> WAG: figure out why your unicorn is apparently being started in the
> context of the very old system ruby :-)
>
I think that it isn't the main problem :)
Ok, I attach unicorn.sh file in my reply.
Attachments:
http://www.ruby-forum.com/attachment/9608/unicorn.sh
--
Posted via http://www.ruby-
When I try to start unicorn I get this error:
/home/.rvm/gems/ruby-2.1.0/gems/kgio-2.8.1/lib/kgio_ext.so: [BUG]
Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
How can I fix this problem?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because y
Slightly off topic but as Twitter is Ruby I couldn't think of a better
forum.
Can someone tell me how the new Tweets bar in Twitter works? Does
Twitter just leave an open Connection to your IP address and do it using
Push?
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
--
You r
I'm looking for expert developers who would like to earn some money and
spend a few hours working from home mentoring other developers in Rails.
It would be paid work, for fun on the side.
This is done via a website I'm launching where developers can mentor
other developers in Ruby on Rails via a
On Wednesday, December 25, 2013 5:43:20 PM UTC-5, Dan Boyle wrote:
>
> I have spent hours trying to get some version of Rails installed and all
> to no avail. It seems there are many people who get the same errors but
> nobody seems to have any answers.
>
> I am new to both Rails and Ubuntu.
I would just ask the question here. If there is some dedicated group, they
will probably answer here and then maybe invite you to join their
specialized group. Or you could always start your own.
On Monday, June 17, 2013 6:26:09 AM UTC-4, Steven Yang wrote:
>
> Hi,
>Recently, I begin to
I have Windows 7. I am trying to get the gem installed for MySQL
Server 5.5
So, I get the zip file for gem from Brian Mario’s repository on github
mysql2, extract it in the new mysql2-0.3.12b5 folder and start the
procedure as follows. As seen below, I get the error “file 'lib' not
found” at the
I have a controller with only one action "res" . I need to redirect to
this controller file for decrypting the code ,so can the url to this be
1) "http://..:3000/user_controller.rb?DR={DR}";
(OR)
2) "http://..:3000/user/res?DR={DR}";
is their any possibili
Thank you very much for the help.
--
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 from this group, send ema
arrow down scope since it might affect the advice,
apologies in advance, trying to NOT make this an advert in itself:
- We are based in London
- Looking to hire local, permanent staff
- Small company looking for self reliant people who can work independently
Thanks for some thoughts
Ed W
-
"The child process can exit using Kernel.exit! to avoid running any
at_exit functions."
This seems to have fixed the issue for me. I have no at_exit functions
I need executed.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Gro
Anybody know how to hook Fusemail to ActionMailer? I'm moving from
GoDaddy where I had mailer set up just fine to Fusemail. After googling
around, it appears the impasse is that Fusemail's TLS is an older TLS on
connect...
--
Posted via http://www.ruby-forum.com/.
--
You received this message
looking for someone to develop an RoR application to
integrate tightly with Facebook and Twitter
- We will require an open API
- We are exploring the possibility of having a facebook app linked to
this
Please get in touch if you are interested.
Ed
--
You received this message because you are
to
integrate tightly with Facebook and Twitter
- We will require an open API
- We are exploring the possibility of having a facebook app linked to
this
Please get in touch if you are interested.
Ed
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails:
What is the easiest way to dump a selection of data for someone else
to import? If XML, what is the cleanest way to accomplish this?
As a hobby, I wrote a workout logging program that now has about 2000
users. From time to time, someone asks me to export their workout
records to another applicat
I eventually gave up on Windows and dual booted Ubuntu, then installed
the rails development environment from scratch. Wow, what a
difference. I was never a Linux guy before but I am now, at least for
Rails development.
On Nov 2, 3:41 pm, Marnen Laibow-Koser wrote:
> Ariel S. wrote in post #95
Just upgraded one of my apps to Rails 3.0 and I cannot install
plugins. I either get "Plugin not found", or an empty folder.
When I run
rails plugin --verbose install
http://github.com/jslag/us-state-select-plugin.git
I get this response:
Plugins will be installed using http
git init
git pull
bump ... no answers?
On Sep 5, 9:35 pm, Ed wrote:
> So what is the best way to structure scores/index to deliver the
> appropriate list?
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this g
On Sep 5, 10:53 pm, nobosh wrote:
> Ed thanks for the reply. I'd love to hear more... I tried your
> suggestion but it error'd:
>
> "undefined method `Notes' for nil:NilClass"
>
Two possible issues:
1. Do you have the relationship declared i
The cleanest method is to scope your notes by user instead of
searching the whole class:
@note = @user.notes.find(params[:id])
On Sep 5, 7:25 pm, nobosh wrote:
> This hack ends up working. Is there a cleaner, ruby trick to getting
> this to work?
>
> @note = Note.find(pa
On Sep 5, 10:29 am, Pål Bergström wrote:
> Pål Bergström wrote:
>
> It works. But how do I deal with a list as this? How do I set the
> variable?
>
> @tests = Test.find(:all)
> --
brute force:
@tests.each {|test| test.key = cookies[:my_key]}
Might be a more clever way to do it.
--
You rece
Trying to convert my app (and brain) to RESTful routes from the old
style. What is the accepted approach to nesting a resource within 2
other resources?
Example:
Models
Person has_many :scores
Contest has_many :scores
Score belongs_to :person, :contest
Routes
resources :people do
.
It occurs to me that the IDE (or editor) should be based on a DSL for
flexibility and extensibility. Shoes 3 recently dropped and I think it
fits the bill. Despite the disappearance of _why_, it seems to be
actively being maintained. I think I'll kick its tires some.
Cheers,
Ed
Ed Howland
http://
On Fri, Aug 27, 2010 at 12:20 PM, Iain Davis > It does, but it doesn't
appeal to the audience that Ed may be thinking
> of. That audience is going to be drawn in much more quickly if they
> can download a single package that a) includes both ruby and an IDE (a
> low-footprint on
?
Also, is it possible to just eval Tk directly as a string? Then
additonal widgets could be added at runtime.
[1] http://github.com/martindemello/guirb.git
Cheers,
Ed
Ed Howland
http://greenprogrammer.wordpress.com
http://twitter.com/ed_howland
On Fri, Aug 27, 2010 at 4:49 AM, Peter De
On Thu, Aug 26, 2010 at 4:58 PM, Greg Donald wrote:
> On Thu, Aug 26, 2010 at 3:56 PM, Ed Howland wrote:
>> [1] Got the mac only to use textmate with RoR work.
>
> So you got yourself a $3500 text editor? Congrats.
>
>
> --
> Greg Donald
> destiney.com | gregdonald
. (I don't like tips or hints - hated
BBedit for that reason).
*extensible with snippets/bundles.
Cheers,
Ed
Ed Howland
http://greenprogrammer.wordpress.com
http://twitter.com/ed_howland
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk
er Ubuntu. You can pimp it out to be like TM
by following these instructions:
http://grigio.org/pimp_my_gedit_was_textmate_linux
Cheers,
Ed
[1] Got the mac only to use textmate with RoR work.
Ed Howland
http://greenprogrammer.wordpress.com
http://twitter.com/ed_howland
--
You received t
Hi,
I'm trying to use the Warden gem via RailsWarden. It is not working,
but I guess I don't understand a few things.
How do you access a Rack thing from a method in your controller?
env[:warden] fails with a method not found error for env.
I want only certain actions to check to see if the use
y
demonstrate a value add to LinkedIn before putting any effort into
this.
LinkedIn *isn't* Twitter, and "any old hacker who can code to an API"
isn't going to get on their approved list. For that matter, I suspect
it's only a matter of time before Twitter adopts a s
?
On Mar 10, 8:42 pm, Tom Z Meinlschmidt wrote:
> Ed wrote:
> > I have a rails app with a growing user base. Right now it is on a
> > single mongrel instance on a shared server. Is there a quantifiable
> > method I can use to measure when I need to add mongrel instances,
Thanks, good info. That is more for a dedicated server, though. If
I'm on a shared server, how can I measure/compare to determine whether
I need the expense of a dedicated server?
On Mar 10, 3:20 pm, Philip Hallstrom wrote:
> > I have a rails app with a growing user base. Right now it is on a
I have a rails app with a growing user base. Right now it is on a
single mongrel instance on a shared server. Is there a quantifiable
method I can use to measure when I need to add mongrel instances, or
move to a dedicated server? Are there rules of thumb for how many
users or page hits an inst
g the regexp
parsing. Curiously though the regexp *does* work for link generation,
it's only route recognition which breaks
Can anyone give me a quick workaround for this, quite a lot or routes to
alter otherwise...
Thanks
Ed W
--~--~-~--~~~---~--~
I have an "audit" table that records when changes are made to another
table. If a record is destroyed, I don't want all the change audits
for that record destroyed or nullified along with it.
--~--~-~--~~~---~--~~
You received this message because you are subscri
I don't have a blog, but wanted to share this little bit of code with
other semi-beginners like myself who are still learning to take
advantage of rails features.
Selecting an attribute with a boolean switch is a common pattern in
forms. You can do it with a check box, but radio buttons are more
:acts_as_tree: http://wiki.rubyonrails.org/rails/pages/ActsAsTree
On Dec 7, 5:06 am, Ali <[EMAIL PROTECTED]> wrote:
> Hi ,
> I am new to rails, and i need to know one thing, i have a table
> called Categories and i want to self join it in such a way , that one
> category could be a parent
Funny, I had same problem but neede the opposite solution: I copied
libmysql.dll from msyql/bin to ruby/bin.
Either way, that's a bit less drastic than nuking and reinstalling
mysql and ruby, so worth trying first.
On Dec 5, 7:19 pm, jasoo24 <[EMAIL PROTECTED]> wrote:
> I noticed that you've al
The ordered hash is already sorted by responsibility, so you would
sort each area something like this: (tags removed)
@areas.group_by(&:responsibility).each do |responsibility, areas|
responsibility.name
areas.sort_by{|area| area.name}.each do |area|
...
A style suggestion: make yourself
ffect the environment.
On Dec 5, 6:43 pm, Ed <[EMAIL PROTECTED]> wrote:
> I just started struggling with the same problem as described in this
> thread, starting when I updated rails from 2.1.2 to 2.2.2. My apps
> work fine in rails 2.1.2. When I change environment.rb to 2.2.2,
I just started struggling with the same problem as described in this
thread, starting when I updated rails from 2.1.2 to 2.2.2. My apps
work fine in rails 2.1.2. When I change environment.rb to 2.2.2, boom
they blow up. Error message says:
"The bundled mysql.rb driver has been removed from rai
never mind, I sorted it out. Solution:
named_scope :no_score, lambda { |compare| { :conditions => "#{compare}
IS NULL" }}
On Nov 21, 10:12 pm, Ed <[EMAIL PROTECTED]> wrote:
> How would I pass an attribute name into a named_scope lambda?
>
> I want to be able to s
How would I pass an attribute name into a named_scope lambda?
I want to be able to search an active record class for nil values in a
particular attribute. Would like to use a named_scope instead of find
() because I want to tack other methods on the end of the result.
Syntax I've tried:
# worko
How would I override <=> for certain attributes of a class?
Say I have the following:
class Workout < ActiveRecord::Base
# columns in db: time, weight, reps, distance
end
I want to be able to sort by results, to list workouts by best time,
weight, etc. But the ordering is different, because a
How can I scope the options returned by
option_groups_from_collection_for_select?
Method calls look like this: option_groups_from_collection_for_select
(collection, group_method, group_label_method, option_key_method,
option_value_method, selected_key = nil)
But say I want to limit the results
an't quite figure it out. Anyone else
get it? I'm not seeing any forks on Github dealing with the error.
Ed
On Oct 28, 2:11 am, edvin <[EMAIL PROTECTED]> wrote:
> Martin,
>
> Your fix seems to address some of the issues, but calling the the
> polymorphic associatio
But of course. Thanks!
On Nov 5, 2:43 pm, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On Nov 5, 7:04 pm, Ed <[EMAIL PROTECTED]> wrote:
>
> > How do I do functional tests on controller methods protected by before
> > filters, without using the soon-to-
How do I do functional tests on controller methods protected by before
filters, without using the soon-to-be-deprecated "follow_redirect"?
Say I have a method called index, filtered by check_login. If the
user is not logged in, they get redirected to the login method, which
logs them in and dire
I've been trying to get my old rails app (environment.rb tells me it was
1.1.6) working under 2.0.2 and I've been having a hell of a time. Trying
to start up webrick nets me this:
[EMAIL PROTECTED]:~/code/Ruby/midnet$ rails script/server
create
File exists - /home/kyle/code/Ruby/midnet/scri
63 matches
Mail list logo