On 22 Mar 2011, at 05:42, "sol.manager" wrote:
> I am trying to add a condition so a "back" button does not appear if
> the user arrived at the current page directly from a link offsite
> (eg., a link from a tweet). I do want the button to appear if the user
> arrived at the page from another pag
I can't start my Rails even using a simple ./script/about (see error
output below).
My app is using Rails 2.1.0 on a shared host where rubygems (1.6.1) and
all application's gems are installed in user directory.
It looks like if gem is looking at the wrong place to find its gems.
Config :
[code]
I am trying to add a condition so a "back" button does not appear if
the user arrived at the current page directly from a link offsite
(eg., a link from a tweet). I do want the button to appear if the user
arrived at the page from another page on our site:
>From what I have read this seems like wh
Hi,
I am using mongoid with rails 3 for my application.
My problem is I have a task list where each task has checkbox to mark
whether has it completed or not.
For that I have written code like this
<%=check_box_tag 'task_is_complete', nil, nil,
:onclick=>"complete('#{task.id}');" %><%=task.name%>
Hi!
I've got a very strange problem. Suddenly the SQLite3 Backend stopped
working.
Example 1:
> rake db:rollback
== CreateProducts: reverting
=
-- drop_table(:products)
rake aborted!
An error has occurred, this and all later migrations canceled:
W dniu 2011-03-22 03:22, Todd A. Jacobs pisze:
I've searched in vain for a basic tutorial on how to upload a binary
file to a database using vanilla Rails 3. Yes, I know about Paperclip;
no, I don't want to upload the files to a filesystem.
What I'd really like to do is capture the filename, mi
I've searched in vain for a basic tutorial on how to upload a binary
file to a database using vanilla Rails 3. Yes, I know about Paperclip;
no, I don't want to upload the files to a filesystem.
What I'd really like to do is capture the filename, mime-type, and
data inside the create/update action-
On Mar 19, 6:30 pm, Ralph Shnelvar wrote:
> Saturday, March 19, 2011, 11:12:58 AM, you wrote:
>
> CL> On 19 March 2011 16:47, Ralph Shnelvar wrote:
>
> >> Is there a way in Rails to get the duration (minutes, seconds, etc.) of
> >> a flash video? I want to display the amount of time to the users
On Mar 20, 6:06 am, Quee WM wrote:
> def for_cityid
> @zones = Zone.where("active = true && city_id = ?",
> params[:id]).sort_by{ |k| k['name'] }
> respond_to do |format|
> format.json { render :json => @zones }
> end
> end
>
> how do i update my routes file that i can access the jason
seems to be working in production now
http://turn2.co
thanks,
Jason
On Mon, Mar 21, 2011 at 7:55 PM, jason white wrote:
> running with no errors in development mode
>
> http://173.255.204.86:3000
>
> thanks,
> Jason
>
>
> On Mon, Mar 21, 2011 at 7:49 PM, Bryan Crossland wrote:
>
>> On Mon, Mar
running with no errors in development mode
http://173.255.204.86:3000
thanks,
Jason
On Mon, Mar 21, 2011 at 7:49 PM, Bryan Crossland wrote:
> On Mon, Mar 21, 2011 at 7:31 PM, jason white wrote:
>
>>
>> [ pid=23865 thr=-609316648 file=utils.rb:176 time=2011-03-22 00:18:04.742
>> ]: *** Exception
On Mon, Mar 21, 2011 at 7:31 PM, jason white wrote:
>
> [ pid=23865 thr=-609316648 file=utils.rb:176 time=2011-03-22 00:18:04.742
> ]: *** Exception NoMethodError in application (undefined method
> `each_with_index' for #) (process
> 23865, thread #):
>
>
Looks like Passenger either doesn't know w
after moving my app to production, I am getting the following error in the
apache error log. I am running on linode with apache and passenger.
any help would be great,
thanks,
Jason
[Tue Mar 22 00:18:04 2011] [error] [client 50.9.211.207] Premature end of
script headers:
[ pid=23638 thr=30635815
On Mon, Mar 21, 2011 at 1:52 PM, yb wrote:
> I've just installed Rails v3.0.5 and reading the guide
> http://guides.rubyonrails.org/getting_started.html#creating-a-new-rails-project.
> Where it says to do:
>
> rails new blog
>
> that actually creates a site in a folder called "new".
That mean
Hi,
I've just installed Rails v3.0.5 and reading the guide
http://guides.rubyonrails.org/getting_started.html#creating-a-new-rails-project.
Where it says to do:
rails new blog
that actually creates a site in a folder called "new".
I also tried a couple of generators, `rails generate devise:
> I am getting the error "can't add a new key into hash during iteration"
> reported for this line of code:
> params[:search_form] ||= {}
After much tinkering, I found a clean enough work around to live with
it, but still no closer to understanding why the error was happening.
-- gw
--
Poste
On Mar 21, 9:38 pm, Greg Willits wrote:
>
> OK, so the line that fails is the one shown just above. Now, if I move
> that line out of the update_sticky_search method and into the
> prep_view_y method just before the call to update_sticky_search, there
> is no error. Bizarre!
>
So is update_sticky
Frederick Cheung wrote in post #988609:
> What error?
Sorry, now that I reread my post, it's not very clear.
I am getting the error "can't add a new key into hash during iteration"
reported for this line of code:
params[:search_form] ||= {}
which makes no sense at all. The iteration examples
On Mar 21, 4:46 pm, Frederick Cheung
wrote:
> On Mar 21, 8:05 pm, "Paul E. G. Lynch" wrote:
>
> That said, activerecord doesn't link to any native libraries. If you
> use the mysql adapter, that pulls in the mysql gem, which does
> obviously load the mysql library, but if you don't use mysql t
On 21 Mar 2011, at 20:33, Bryan Crossland wrote:
> On Mon, Mar 21, 2011 at 3:05 PM, Paul E. G. Lynch wrote:
>
>> GPL requires that if you link with the library, you have to have a GPL-
>> compatible license so that the result is available under GPL. See:
>> http://www.gnu.org/licenses/gpl-faq.ht
On Mar 21, 8:05 pm, "Paul E. G. Lynch" wrote:
> GPL requires that if you link with the library, you have to have a GPL-
> compatible license so that the result is available under GPL.
> See:http://www.gnu.org/licenses/gpl-faq.html#LinkingWithGPL
>
> So, if ActiveRecord is linking with the MySQ
On Mon, Mar 21, 2011 at 3:05 PM, Paul E. G. Lynch wrote:
> GPL requires that if you link with the library, you have to have a GPL-
> compatible license so that the result is available under GPL. See:
> http://www.gnu.org/licenses/gpl-faq.html#LinkingWithGPL
>
> So, if ActiveRecord is linking with
On Mar 21, 8:19 pm, Greg Willits wrote:
> Rails 3.0.5
> Code that runs fine in 1.8.7 is balking in 1.9.2
>
> I guess 1.9 has fundamentally changed something like this (assuming keys
> are symbols):
>
> my_hash.each do |key, value|
> my_hash[key.to_s] = value
> end
Modifying a collection while
On 21 March 2011 18:48, Paul E. G. Lynch wrote:
> MySQL's license is GPL. ActiveRecord, which (I presume) uses MySQL's
> client libraries, is under the MIT license. How does ActiveRecord
> avoid being GPL?
Oracle makes an exception to the GPL for MySQL which (loosely
paraphrasing) allows linkin
Rails 3.0.5
Code that runs fine in 1.8.7 is balking in 1.9.2
I guess 1.9 has fundamentally changed something like this (assuming keys
are symbols):
my_hash.each do |key, value|
my_hash[key.to_s] = value
end
to now require something like this:
my_hash.dup.each do |key, value|
my_hash[key.to_
GPL requires that if you link with the library, you have to have a GPL-
compatible license so that the result is available under GPL. See:
http://www.gnu.org/licenses/gpl-faq.html#LinkingWithGPL
So, if ActiveRecord is linking with the MySQL libraries, then my
understanding is that it should be GP
It sounds like you want an admin mode to do some setup before the app
goes live. If that's the case, why not have a special controller for
that purpose and some logic to redirect to that controller if the app
is in a nascent state? Seems like one of the wizard recipes could also
apply nicely here.
On Mon, Mar 21, 2011 at 1:48 PM, Paul E. G. Lynch wrote:
> MySQL's license is GPL. ActiveRecord, which (I presume) uses MySQL's
> client libraries, is under the MIT license. How does ActiveRecord
> avoid being GPL?
>
I'm no attorney but I believe the answer is that ActiveRecord is not
modifying
For those who may need the answer to this question I will outline my
OS-independent solution.
The file format of an .flv file is documented in
http://download.macromedia.com/f4v/video_file_format_spec_v10_1.pdf
To spare you the effort of reading the documentation ...
Read the metadata header int
MySQL's license is GPL. ActiveRecord, which (I presume) uses MySQL's
client libraries, is under the MIT license. How does ActiveRecord
avoid being GPL?
--
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
On Mon, Mar 21, 2011 at 11:29 AM, Frederick Cheung <
frederick.che...@gmail.com> wrote:
>
>
> On Mar 21, 5:19 pm, David Kahn wrote:
> > When I do such a query, AR misses the second 1/2 of the where clause
> > (assigned_product_id):
> >
> >
> XpRawBillDetailProduct.joins(:xp_raw_bill_detail).where
Sam Kong wrote in post #984511:
> Hi,
>
> I am developing a rails 3 application.
> I want to use a interceptor before delivering emails.
> If a conditions meets, I want to stop the email.
> How do I do that?
>
> Thanks.
>
> Sam
Sam, did you get a solution with an interceptor? I tried returning
f
Anyone??
--
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+unsubscr...@googlegroups.com.
For more option
On Mar 20, 4:30 pm, cdempsey wrote:
> I've been poking around using my search-fu to look for a way to run
> code after Rails 3 has initialised but before any requests are
> services. I was thinking of scenarios like migrating the database or
> forcing administrators to set values to new applicatio
On Mar 21, 5:19 pm, David Kahn wrote:
> When I do such a query, AR misses the second 1/2 of the where clause
> (assigned_product_id):
>
> XpRawBillDetailProduct.joins(:xp_raw_bill_detail).where("xp_raw_bill_detail
> s.account_subcode_id=#{
> account_subcode.id}", :assigned_product_id =>
> raw_b
When I do such a query, AR misses the second 1/2 of the where clause
(assigned_product_id):
XpRawBillDetailProduct.joins(:xp_raw_bill_detail).where("xp_raw_bill_details.account_subcode_id=#{
account_subcode.id}", :assigned_product_id =>
raw_bill_product.assigned_product_id).to_sql
"SELECT \"xp_ra
On 21 Mar 2011, at 16:42, gs84 wrote:
So as this is not possible, is there a way to change (message, ...)
the file dialog box in Rails?
It's a browser thing, so no. Rails, PHP, Java, the Pope, none of them
can change something that's just part of how the browser itself was
programmed.
On Mar 21, 3:52 pm, jason white wrote:
> seems like my passenger install is broken. I tried reinstalling, but
> still have the following error in the error log
>
> [Mon Mar 21 11:48:56 2011] [error] *** Passenger could not be
> initialized because of this error: Unable to start the Phusion
> Pas
I fat fingered that when I was typing the configuration. I have made
the change, and restarted apache, and still get the error.
Thanks,
Jason
On Mon, Mar 21, 2011 at 11:00 AM, Frederick Cheung
wrote:
>
>
> On Mar 21, 1:43 pm, jason white wrote:
>
>> PassengerRoot /user/lib/ruby/gems/1.8/gems/pa
Excerpts from Linus Pettersson's message of Mon Mar 21 08:37:33 -0700 2011:
> Hi and thank you for your reply!
>
> It kinda works... There is some issues though.
>
> When I go to .../ackord/artist-name I want to load the artists show
> action and inside this I loop out all the songs that's relat
Hi,
I'd like to add redmine as project management application to be a part
of my rails application. Is there anyway to do this instead of manual
merging of both codes?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
On Mar 21, 1:43 pm, jason white wrote:
> PassengerRoot /user/lib/ruby/gems/1.8/gems/passenger-3.0.5
Is that really right (rather than /usr) ?
Fred
> PassengerRuby /usr/bin/ruby1.8
>
> i'm sure i'm missing something minor, any help would be greatly appreciated
>
> Jason
--
You received this
seems like my passenger install is broken. I tried reinstalling, but
still have the following error in the error log
[Mon Mar 21 11:48:56 2011] [error] *** Passenger could not be
initialized because of this error: Unable to start the Phusion
Passenger watchdog because its executable
(/usr/lib/phus
So as this is not possible, is there a way to change (message, ...)
the file dialog box in Rails?
Thanks
--
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 unsubscri
Hi and thank you for your reply!
It kinda works... There is some issues though.
When I go to .../ackord/artist-name I want to load the artists show
action and inside this I loop out all the songs that's related to the
artist.
When I go to this url now it load the songs index action instead. Its
Hi Jason,
On Mon, Mar 21, 2011 at 10:17 AM, jason white wrote:
> the load module is on one line
>
> i'm assuming that Passenger is loading, but not 100% sure how to
> check. How can I pull up the log files?
Easiest way to see if Passenger is running is ps -eaf
You should see a couple of lines i
On Mar 21, 3:17 pm, jason white wrote:
> the load module is on one line
>
> i'm assuming that Passenger is loading, but not 100% sure how to
> check. How can I pull up the log files?
>
They're probably in /var/log/httpd or somewhere similar
Fred
> thanks,
> Jason
>
> On Mon, Mar 21, 2011 at 10
the load module is on one line
i'm assuming that Passenger is loading, but not 100% sure how to
check. How can I pull up the log files?
thanks,
Jason
On Mon, Mar 21, 2011 at 10:08 AM, Frederick Cheung
wrote:
> On Mar 21, 1:43 pm, jason white wrote:
>>
>>
>> ServerName turn2.co
>>
On Mar 21, 1:43 pm, jason white wrote:
>
>
> ServerName turn2.co
> ServerAliaswww.turn2.co
>
> DocumentRoot /var/www/public_html/turn2/public
>
>
>
> my apache config file looks like this:
>
> LoadModule passenger_module
> /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/ext/a
Excerpts from Linus Pettersson's message of Mon Mar 21 03:40:43 -0700 2011:
> Any ideas anyone?
>
> I tried this:
>
> match 'ackord/:artist_id/:id' => 'songs#show', :as => :song
>
> resources :artists, :path => "ackord" do
> resources :songs
> end
>
> Which makes it work without the /so
The mediainfo CLI app, or ffmpeg if that doesn't work. You can shell
out to the CLI with the back-tick operator, and the return from either
of these will be plain text, suitable for further regular-expression-
bashing.
Walter
On Mar 19, 2011, at 2:30 PM, Ralph Shnelvar wrote:
Saturday, Ma
I have an Ubuntu 10.10 server running Apache and Passenger on Linode.
I am stumped on figuring out why all of the items in the public folder
are being displayed instead of the site itself. the web site can be
seen at http://turn2.co
My virtual host file is configured like this:
ServerNam
Hi Sebastian,
Thank you very much for your advice.
Your advice worked well!
Thanks,
Ryo
On Mar 21, 4:54 am, Sebastian Gräßl wrote:
> Hej Ryo,
>
> have you added mongrel to your gems?
> If not simply add "gem mongrel" to your Gemfile.
> "rails server" will then automatically use mongrel.
>
> Bes
hi,
im having a table which holds a lot of information. i would like to
slice & dice in a BI-manner the table. u guys have any suggestions?
table looks a bit like this:
user
app [appa, appb, appc]
action [actiona, actionb, actionc]
timestamps
...
so it would be cool to sort, drill in&up based on
> >> [...]but i do not know why nearly
> >> all the examples in the book re-raise the
> >> exceptions.i think i have misunderstood the exception in ruby.if an
> >> exception raises in the end used method,we generally do a final
> >> capture,and no need to reraise,am i right?
>
> > You are right. C
Yeah I might give that a try, thanks for the help
M
--
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 t
Also the JS code in my application.js is :
$('searchbutton').live('click', function() {
var address = $('address_text).val();
geocoder = new google.maps.geocoder();
geocoder.geocode(request:address,callback:function(results,status) {
var lat = results[0].geometry.location.lat().toString(
Oops hit the send button too quickly.
Here is the actual result.html.erb code
<% @restaurants.each do |restaurant| %>
<%= render 'search_result', :restaurant => restaurant%>
<%= link_to 'Order Now', {:controller => "search", :action =>
"create_order", :id => restaurant},
:
here is the view code in the result.html.erb
<% restaurants.each do |restaurant| %>
<%= render 'search_result', :restaurant => restaurant%>
<%= link_to 'Order Now', {:controller => "search", :action =>
"create_order", :id => restaurant},
:c
On Mar 21, 9:32 am, Michael Baldock wrote:
>
> If you look at the "bands_attributes" hash, "0" is used to determine
> which band this is, with each new band on the form this increases by 1,
> "new_band_name" is a virtual attribute that will be used in the future
> to create bands on the fly, an
Any ideas anyone?
I tried this:
match 'ackord/:artist_id/:id' => 'songs#show', :as => :song
resources :artists, :path => "ackord" do
resources :songs
end
Which makes it work without the /songs/ part in the url at least for
the show action. It still works with the /song/ part though, whi
Hi Fred,
Thanks for helping out with this, sorry bout slow reply, I haven't been
able to get back to this, and for some reason email notifications didn't
happen, anyway...
These are the paramaters when I try to submit using
ff.collection_select :id, @bands, :id, :band_name
Started POST "/adm
On 21 March 2011 09:36, Frederick Cheung wrote:
> On 21 Mar 2011, at 08:59, Robert Will wrote:
>> I already had "http://"; in the URL. I just double checked again and
>> still no joy?
>
> It depends on how exactly parallels does its virtual networking stuff, but
> you might want to check that y
On 21 Mar 2011, at 08:59, Robert Will wrote:
> Hey Sebastian,
>
> I already had "http://"; in the URL. I just double checked again and
> still no joy?
>
It depends on how exactly parallels does its virtual networking stuff, but you
might want to check that your app isn't just bound to loc
Hey Sebastian,
I already had "http://"; in the URL. I just double checked again and
still no joy?
Thanks,
Bobby
--
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 e
+1 for RVM. There is literally no substitute for the simplicity, the
documentation is excellent, and it's really on its way to becoming the
defacto standard for Ruby deployment (perhaps in competition on MacOS with
Homebrew). See http://rvm.beginrescueend.com/ for more information.
On Mon, Mar 2
Hi,
I am developing a rails app on a system which connects to internet
through proxy.
I am facing difficulties while Action Mailer tries to send mails.
It says, Time Out Error.
But when I try to run the code in the system which is directly connected
to internet without proxy, The mails are sent co
Your view code would be helpful to see.
On Mar 21, 5:48 am, vishy wrote:
> Hi all,
>
> I am using the google maps API to perform some geolocation on the
> client side. I am able to geocode my users address without any issues.
> However after doing this on the front end I would like to goto my
>
In your second scenario the user is not logged in.
prepend the steps from scenario 1 into scenario 2.
I would recommend a "As a logged in user" etc.
On Mar 21, 8:15 am, Mike Disuza wrote:
> Hi,
> I am learning cucumber.
> I have integrated the Devise with my rails 3 application.
> My problem is
Hi,
I am learning cucumber.
I have integrated the Devise with my rails 3 application.
My problem is I have to write a test which will create a project.
For that I have to make sure that user should be logged in. So I have
written the user login feature first which is working fine. After that I
have
On Mar 21, 6:33 am, Christopher Warrington
wrote:
> I have tried to update my ruby version many different ways, reading
> forums and the like, and every time, it looks like the
> installation/upgrade completes without errors, but when I run ruby-v, it
> still spits out ruby 1.8.7 instead of 1.9.
71 matches
Mail list logo