Hi Alex,
changing it to require 'action_pack' worked.
But other gems has the same issue -
# ./test.rb
/usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- bundler (LoadError)
from
/usr/local/rvm/rubies/ruby-1
On 23 March 2012 21:48, John Merlino wrote:
> The ruby library comes with a method called merge that allows you to
> merge two hashes. So then why does merge_conditions exist in
> activereocrd, which appears to be doing the same thing.
I don't think merge_conditions /does/ exist any more (in Rail
The ruby library comes with a method called merge that allows you to
merge two hashes. So then why does merge_conditions exist in
activereocrd, which appears to be doing the same thing.
thanks for response
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rai
Yes. actionpack is installed.
# gem list -d actionpack
/usr/local/rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/yaml.rb:56:in `':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your
ruby.
*** LOCAL GEMS ***
acti
Hi,
I figured out this error
undefined method `basket' for #
simply add two columns (apple & basket) in the table called Table :)
now appear correctly the webpage with the drop down menu so
If you have in the app/views/table/new.html.erb
1. <%= form_for @table do |f| %>
2. <%= f.collection_s
>> require 'net/imap'
>> imap = Net::IMAP.new('imap.yandex.ru', 993, true)
>> imap.login('login', 'password')
>> imap.select('INBOX')
=> #, text=" SELECT completed">, raw_data="RUBY0010
OK [READ-WRITE] SELECT completed\r\n">
>> imap.search(['ALL'])
NoMethodError: You have a nil object when you did
Does *system('i_view32.exe', 'C:\\Rails\\test.png',
'/convert=C:\\Rails\\test.jpg')* work for you?
On Fri, Mar 23, 2012 at 8:49 PM, Aaron Schmitz
wrote:
> thank younever thought about that..
> next question! :D
> when i put in mit shell : i_view32.exe C:\Rails\test.png
> /convert=C:\Rails\tes
Hello =),
I've been trying to connect facebook using OmniAuth (https://
github.com/
intridea/omniauth), through i'm getting a SSL Error message:
OpenSSL::SSL::SSLError
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
certificate verify failed
I was checking posts like this o
Hi
Yo should write as this:
@clubs.each do |club|
%tr
%td= club.name
%td= link_to 'Show', club
- if can? :update, club
%td= link_to 'Edit', edit_club_path(club)
- if can? :destroy, club
%td= link_to 'Destroy', club, :confirm => 'Are you
sure?', :method => :de
On 23 March 2012 16:48, bingo bob wrote:
> Colin Law wrote in post #1052938:
>> On 23 March 2012 09:24, bingo bob wrote:
>>> "owned" by different users who may have it as a different position in
>>> Freddy
>>> Rod (3, male)
>> A couple of questions
>> Are all the Rod records identical except for
On 23 March 2012 16:48, bingo bob wrote:
> Colin Law wrote in post #1052938:
>> On 23 March 2012 09:24, bingo bob wrote:
>>> "owned" by different users who may have it as a different position in
>>> Freddy
>>> Rod (3, male)
>> A couple of questions
>> Are all the Rod records identical except for
Colin Law wrote in post #1052938:
> On 23 March 2012 09:24, bingo bob wrote:
>> "owned" by different users who may have it as a different position in
>> Freddy
>> Rod (3, male)
> A couple of questions
> Are all the Rod records identical except for which user they belong to?
No they're not - for e
I have two models: User and Profile.
User has_one Profile, and Profile belongs_to User.
How to update a Profile?
I have done it this way:
def update
@user = User.find(session[:member_id])
@profile = @user.profile
updated = @profile.update_attributes(params[:profile])
if updated
f
I'm using Rails 3.0.9, and I want to use @font-face CSS3 feature to embed
fonts in my app. Here's my CSS.
@font-face {
> font-family: 'CodeBoldRegular';
> src: url('code_bold-webfont.eot');
> src: url('code_bold-webfont.eot?#iefix') format('embedded-opentype'),
> url('code_bo
On Friday, March 23, 2012 5:50:09 AM UTC-4, Frederick Cheung wrote:
>
>
>
> > = if can? :update, club
> > %td= link_to 'Edit', edit_club_path(club)
>
> You should be using
>
> - if can? :update, club
>
> Using = tells haml that you want the result of the if expression (ie
> the va
On 23 March 2012 13:46, Aaron Schmitz wrote:
> is it a permission issue on win xp?
> the command is ok, i tested it in cmd.exe
Probably... I recommend a nice Linux install (even just a VM... ;-)
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk"
"=> nil"
i can start "calc.exe" from firefox via the controller that says "*
system("calc.exe")*".
but i cannot start i_view32.exe or firefox.exe etc.
is it a permission issue on win xp?
the command is ok, i tested it in cmd.exe
--
You received this message because you are subscribed to the Goog
On 23 March 2012 12:49, Aaron Schmitz wrote:
> next question! :D
> system("i_view32.exe C:\Rails\test.png /convert=C:\Rails\test.jpg")
> doesn't work.
What happens when you try:
system("i_view32.exe C:\\Rails\\test.png /convert=C:\\Rails\\test.jpg")
?
--
You received this message because you
On 22 March 2012 20:34, bwb wrote:
> These models are defined with respect to a legacy database:
>
> class VeType < ActiveRecord::Base
> has_many :ve #plural defined as "ve"
> self.primary_key = "typeID"
I don't know whether it amounts to the same thing but i
On 23 March 2012 09:24, bingo bob wrote:
> OK
>
> Thanks - I've had another think about it but I'd still appreciate any
> insight if possible. I had wondered if my data model is wrong but I
> don't think so, it's rather simple.
>
> Users have names and Names belong to users. It has to be like this
thank younever thought about that..
next question! :D
when i put in mit shell : i_view32.exe C:\Rails\test.png
/convert=C:\Rails\test.jpg it works. but when i do
*system("i_view32.exe C:\Rails\test.png /convert=C:\Rails\test.jpg")*
it doesn't work.
what am i doing wrong?i guess it is escaping
1. You sure that actionpack is installed?
2. Instead of
require 'actionpack'
use:
require 'action_pack'
On Friday, March 23, 2012 5:17:10 AM UTC+2, Ruby-Forum.com User wrote:
>
> Hi Alex, thanks a lot for some informative advice.
> I tried those things. Still no luck :/
>
> # env | grep
On 23 March 2012 10:36, Aaron Schmitz wrote:
> hi,
>
> im getting tired on this one.
> i want to replace all forwardslashes with backwardslashes.
>
> irb:
> r = "C:/RAILS/"
> r.gsub("/", "\\") or r.gsub("/") {('\'} both give me:
> "C:\\RAILS\\"
>
> how can i use gsub to display only one "\"?
It's
hi,
im getting tired on this one.
i want to replace all forwardslashes with backwardslashes.
irb:
r = "C:/RAILS/"
r.gsub("/", "\\") or r.gsub("/") {('\'} both give me:
"C:\\RAILS\\"
how can i use gsub to display only one "\"?
regards
--
You received this message because you are subscribed to
> = if can? :update, club
> %td= link_to 'Edit', edit_club_path(club)
You should be using
- if can? :update, club
Using = tells haml that you want the result of the if expression (ie
the value that "can? :update, club") to be output in the view.
Fred
--
You received this message b
Dear All,
I want to deploy the rails3 app on the windows server, but i searched a
lot and also test a lot, all failed. could anyone show me the details of
the setting?
Thanks.
Daisy
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
These models are defined with respect to a legacy database:
class VeType < ActiveRecord::Base
has_many :ve #plural defined as "ve"
self.primary_key = "typeID"
end
class Ve < ActiveRecord::Base
belongs_to :ve_type, :foreign_key => "TypeID"
Howdy,
I'm very new with Ruby and ActiveRecord.
I've got a table in postgres that looks something like
create table test
test_id not null default nextval('test_id_seq')
test_parent int not null
test_name varchar(20) not null
For the parent record: test_parent = tes
I have a rail app setup with devise and i am now adding cancan.
The problem i am having is that where ever i have can? in my views, it adds
a number. It only does this if the user does have the permission for the
action. Everything else is working perfectly, it's just these annoying
numbers!
T
Hello group,
I'm new to Rails and i'm trying to create a 'nested' form for user to
a company. I would like the client to be able to create a company in
the users sign up form. I get the part were you can choose a company
from a collection, but i want to allow the user to create a new
company throu
OK
Thanks - I've had another think about it but I'd still appreciate any
insight if possible. I had wondered if my data model is wrong but I
don't think so, it's rather simple.
Users have names and Names belong to users. It has to be like this as
Users can individually sort their names (so the
31 matches
Mail list logo